mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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: sayli karnik <karniksayli1995@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
b010500281
commit
8f867691eb
1 changed files with 4 additions and 4 deletions
|
|
@ -41,10 +41,10 @@
|
|||
#define AD7152_REG_CFG2 26
|
||||
|
||||
/* Status Register Bit Designations (AD7152_REG_STATUS) */
|
||||
#define AD7152_STATUS_RDY1 (1 << 0)
|
||||
#define AD7152_STATUS_RDY2 (1 << 1)
|
||||
#define AD7152_STATUS_C1C2 (1 << 2)
|
||||
#define AD7152_STATUS_PWDN (1 << 7)
|
||||
#define AD7152_STATUS_RDY1 BIT(0)
|
||||
#define AD7152_STATUS_RDY2 BIT(1)
|
||||
#define AD7152_STATUS_C1C2 BIT(2)
|
||||
#define AD7152_STATUS_PWDN BIT(7)
|
||||
|
||||
/* Setup Register Bit Designations (AD7152_REG_CHx_SETUP) */
|
||||
#define AD7152_SETUP_CAPDIFF (1 << 5)
|
||||
|
|
|
|||
Loading…
Reference in a new issue