]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iio: adc: mxs-lradc: Prefer using the BIT macro
authorNizam Haider <nizamhaider786@gmail.com>
Mon, 9 Nov 2015 14:26:02 +0000 (19:56 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sun, 15 Nov 2015 11:11:43 +0000 (11:11 +0000)
Replaces bit shifting on 1 with the BIT(x) macro

Signed-off-by: Nizam Haider <nijamh@cdac.in>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/mxs-lradc.c

index 407d4a2c8eda0887af8e5c949d98657c69357747..1f25027b7b61f845ca915a32e8195af01c1ed25c 100644 (file)
@@ -324,7 +324,7 @@ struct mxs_lradc {
 #define        LRADC_DELAY_TRIGGER(x) \
                                (((x) << LRADC_DELAY_TRIGGER_LRADCS_OFFSET) & \
                                LRADC_DELAY_TRIGGER_LRADCS_MASK)
-#define        LRADC_DELAY_KICK                        (1 << 20)
+#define        LRADC_DELAY_KICK                        BIT(20)
 #define        LRADC_DELAY_TRIGGER_DELAYS_MASK         (0xf << 16)
 #define        LRADC_DELAY_TRIGGER_DELAYS_OFFSET       16
 #define        LRADC_DELAY_TRIGGER_DELAYS(x) \