Commit c0559ae2 authored by Shraddha Barke's avatar Shraddha Barke Committed by Jonathan Cameron

Staging: iio: cdc: ad7150: Prefer using the BIT macro

Replace bit shifting on 1 with the BIT(x) macro
Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent b11a3460
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
*/ */
#define AD7150_STATUS 0 #define AD7150_STATUS 0
#define AD7150_STATUS_OUT1 (1 << 3) #define AD7150_STATUS_OUT1 BIT(3)
#define AD7150_STATUS_OUT2 (1 << 5) #define AD7150_STATUS_OUT2 BIT(5)
#define AD7150_CH1_DATA_HIGH 1 #define AD7150_CH1_DATA_HIGH 1
#define AD7150_CH2_DATA_HIGH 3 #define AD7150_CH2_DATA_HIGH 3
#define AD7150_CH1_AVG_HIGH 5 #define AD7150_CH1_AVG_HIGH 5
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#define AD7150_CH2_TIMEOUT 13 #define AD7150_CH2_TIMEOUT 13
#define AD7150_CH2_SETUP 14 #define AD7150_CH2_SETUP 14
#define AD7150_CFG 15 #define AD7150_CFG 15
#define AD7150_CFG_FIX (1 << 7) #define AD7150_CFG_FIX BIT(7)
#define AD7150_PD_TIMER 16 #define AD7150_PD_TIMER 16
#define AD7150_CH1_CAPDAC 17 #define AD7150_CH1_CAPDAC 17
#define AD7150_CH2_CAPDAC 18 #define AD7150_CH2_CAPDAC 18
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment