diff options
author | Tom Hughes <tomhughes@chromium.org> | 2019-11-06 16:50:54 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-08 20:12:48 +0000 |
commit | 129c26685df2a045069cabf8e60fce5ba679e8c5 (patch) | |
tree | 2db692072bedb009ecbc4b25d77d05b93069d80a /common/usbc | |
parent | daee93dd1e7f722a249db0fdf124d5157744f693 (diff) | |
download | chrome-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')
0 files changed, 0 insertions, 0 deletions