提交 8f867691 编写于 作者: S sayli karnik 提交者: Jonathan Cameron

staging: iio: ad7152: Use BIT() macro for left shifting 1

Replace left shifting on 1 with the BIT(x) macro as suggested by
checkpatch.pl.
Signed-off-by: Nsayli karnik <karniksayli1995@gmail.com>
Acked-by: NJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 b0105002
...@@ -41,10 +41,10 @@ ...@@ -41,10 +41,10 @@
#define AD7152_REG_CFG2 26 #define AD7152_REG_CFG2 26
/* Status Register Bit Designations (AD7152_REG_STATUS) */ /* Status Register Bit Designations (AD7152_REG_STATUS) */
#define AD7152_STATUS_RDY1 (1 << 0) #define AD7152_STATUS_RDY1 BIT(0)
#define AD7152_STATUS_RDY2 (1 << 1) #define AD7152_STATUS_RDY2 BIT(1)
#define AD7152_STATUS_C1C2 (1 << 2) #define AD7152_STATUS_C1C2 BIT(2)
#define AD7152_STATUS_PWDN (1 << 7) #define AD7152_STATUS_PWDN BIT(7)
/* Setup Register Bit Designations (AD7152_REG_CHx_SETUP) */ /* Setup Register Bit Designations (AD7152_REG_CHx_SETUP) */
#define AD7152_SETUP_CAPDIFF (1 << 5) #define AD7152_SETUP_CAPDIFF (1 << 5)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册