iio: adc: mxs-lradc: Prefer using the BIT macro

Replaces bit shifting on 1 with the BIT(x) macro

Signed-off-by: Nizam Haider <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
Nizam Haider 2015-11-09 19:56:02 +05:30 • committed by Jonathan Cameron
commit e0c961bdaf

View 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) \