Staging: iio: cdc: Prefer using the BIT macro
authorShraddha Barke <shraddha.6596@gmail.com>
Fri, 25 Sep 2015 17:23:01 +0000 (22:53 +0530)
committerJonathan Cameron <jic23@kernel.org>
Wed, 30 Sep 2015 17:20:53 +0000 (18:20 +0100)
Replace bit shifting on 1 with the BIT(x) macro

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/cdc/ad7746.c

index 10fa372a4182ab97f69091754f0f6a8e199d62b1..55cc8bb0b772f521f24458156b10466b5c196e6b 100644 (file)
 #define AD7746_VTSETUP_VTCHOP          (1 << 0)
 
 /* Excitation Setup Register Bit Designations (AD7746_REG_EXC_SETUP) */
-#define AD7746_EXCSETUP_CLKCTRL                (1 << 7)
-#define AD7746_EXCSETUP_EXCON          (1 << 6)
-#define AD7746_EXCSETUP_EXCB           (1 << 5)
-#define AD7746_EXCSETUP_NEXCB          (1 << 4)
-#define AD7746_EXCSETUP_EXCA           (1 << 3)
-#define AD7746_EXCSETUP_NEXCA          (1 << 2)
+#define AD7746_EXCSETUP_CLKCTRL                BIT(7)
+#define AD7746_EXCSETUP_EXCON          BIT(6)
+#define AD7746_EXCSETUP_EXCB           BIT(5)
+#define AD7746_EXCSETUP_NEXCB          BIT(4)
+#define AD7746_EXCSETUP_EXCA           BIT(3)
+#define AD7746_EXCSETUP_NEXCA          BIT(2)
 #define AD7746_EXCSETUP_EXCLVL(x)      (((x) & 0x3) << 0)
 
 /* Config Register Bit Designations (AD7746_REG_CFG) */