summaryrefslogtreecommitdiff
path: root/common/usbc/usb_pe_drp_sm.c
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2019-11-06 16:50:54 -0800
committerCommit Bot <commit-bot@chromium.org>2019-11-08 20:12:48 +0000
commit129c26685df2a045069cabf8e60fce5ba679e8c5 (patch)
tree2db692072bedb009ecbc4b25d77d05b93069d80a /common/usbc/usb_pe_drp_sm.c
parentdaee93dd1e7f722a249db0fdf124d5157744f693 (diff)
downloadchrome-ec-129c26685df2a045069cabf8e60fce5ba679e8c5.tar.gz
ec_commands: Force enum to be at least 16 bits
If the values in the enum can fit in a byte, the compiler can optimize the size of the enum to a byte. However, our protocol requires 16 bits, so define a max enum value that forces at least 16 bits. BRANCH=none BUG=b:144056522 TEST=make buildall -j Change-Id: I119d990f2775d8b970ec0ec15df1e451fc5dc45d Signed-off-by: Tom Hughes <tomhughes@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1902679 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'common/usbc/usb_pe_drp_sm.c')
0 files changed, 0 insertions, 0 deletions