提交 e0c961bd 编写于 作者: N Nizam Haider 提交者: Jonathan Cameron

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

Replaces bit shifting on 1 with the BIT(x) macro
Signed-off-by: NNizam Haider <nijamh@cdac.in>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 a1513641
......@@ -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) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册