summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/adc/mxs-lradc.c
diff options
context:
space:
mode:
authorNizam Haider <nizamhaider786@gmail.com>2015-11-09 19:56:02 +0530
committerJonathan Cameron <jic23@kernel.org>2015-11-15 11:11:43 +0000
commite0c961bdaf2786bc9795efff6e87a15491778384 (patch)
tree23c3ec9b03e551eea65048486903eba21eee8dda /drivers/staging/iio/adc/mxs-lradc.c
parenta1513641892b220bc5b7ce63e44b81658702cdae (diff)
iio: adc: mxs-lradc: Prefer using the BIT macro
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>
Diffstat (limited to 'drivers/staging/iio/adc/mxs-lradc.c')
-rw-r--r--drivers/staging/iio/adc/mxs-lradc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/mxs-lradc.c b/drivers/staging/iio/adc/mxs-lradc.c
index 407d4a2c8eda..1f25027b7b61 100644
--- a/drivers/staging/iio/adc/mxs-lradc.c
+++ b/drivers/staging/iio/adc/mxs-lradc.c
@@ -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) \