mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
i2c: rk3x: Fix sparse warning
This patch fixes the following sparse warning: drivers/i2c/busses/i2c-rk3x.c:888:17: warning: cast truncates bits from constant value (ffffffffff00 becomes ffffff00) Reported-by: Wolfram Sang <[email protected]> Signed-off-by: David Wu <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
318ce2782a
commit
a8a7d09e73
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ enum {
|
|||
#define REG_CON_LASTACK BIT(5) /* 1: send NACK after last received byte */
|
||||
#define REG_CON_ACTACK BIT(6) /* 1: stop if NACK is received */
|
||||
|
||||
#define REG_CON_TUNING_MASK GENMASK(15, 8)
|
||||
#define REG_CON_TUNING_MASK GENMASK_ULL(15, 8)
|
||||
|
||||
#define REG_CON_SDA_CFG(cfg) ((cfg) << 8)
|
||||
#define REG_CON_STA_CFG(cfg) ((cfg) << 12)
|
||||
|
|
|
|||
Loading…
Reference in a new issue