Commit 8f867691 authored by sayli karnik's avatar sayli karnik Committed by 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: default avatarsayli karnik <karniksayli1995@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment