diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2019-03-11 15:57:52 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-26 04:42:55 -0700 |
commit | bb266fc26fc05d4ab22de6ad7bce5b477c9f9140 (patch) | |
tree | f6ada087f62246c3a9547e649ac8846b0ed6d5ab /include/i8042_protocol.h | |
parent | 0bfc511527cf2aebfa163c63a1d028419ca0b0c3 (diff) | |
download | chrome-ec-bb266fc26fc05d4ab22de6ad7bce5b477c9f9140.tar.gz |
common: replace 1 << digits, with BIT(digits)
Requested for linux integration, use BIT instead of 1 <<
First step replace bit operation with operand containing only digits.
Fix an error in motion_lid try to set bit 31 of a signed integer.
BUG=None
BRANCH=None
TEST=compile
Change-Id: Ie843611f2f68e241f0f40d4067f7ade726951d29
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1518659
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include/i8042_protocol.h')
-rw-r--r-- | include/i8042_protocol.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/i8042_protocol.h b/include/i8042_protocol.h index eecdafc476..8844cd658d 100644 --- a/include/i8042_protocol.h +++ b/include/i8042_protocol.h @@ -80,11 +80,11 @@ #define I8042_RET_ERR 0xff /* port 64 - command byte bits */ -#define I8042_XLATE (1 << 6) -#define I8042_AUX_DIS (1 << 5) -#define I8042_KBD_DIS (1 << 4) -#define I8042_SYS_FLAG (1 << 2) -#define I8042_ENIRQ12 (1 << 1) -#define I8042_ENIRQ1 (1 << 0) +#define I8042_XLATE BIT(6) +#define I8042_AUX_DIS BIT(5) +#define I8042_KBD_DIS BIT(4) +#define I8042_SYS_FLAG BIT(2) +#define I8042_ENIRQ12 BIT(1) +#define I8042_ENIRQ1 BIT(0) #endif /* __CROS_EC_I8042_PROTOCOL_H */ |