projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b11a346
)
Staging: iio: cdc: ad7150: Prefer using the BIT macro
author
Shraddha Barke
<shraddha.6596@gmail.com>
Tue, 29 Dec 2015 11:27:30 +0000
(16:57 +0530)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 4 Jan 2016 12:07:52 +0000
(12:07 +0000)
Replace bit shifting on 1 with the BIT(x) macro
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/cdc/ad7150.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/iio/cdc/ad7150.c
b/drivers/staging/iio/cdc/ad7150.c
index e8d0ff2d5c9b9cbd1ec0ffcb7b0c027c44beed0a..0b934f7801d575bdaeaf5504f95cdfef881de683 100644
(file)
--- a/
drivers/staging/iio/cdc/ad7150.c
+++ b/
drivers/staging/iio/cdc/ad7150.c
@@
-21,8
+21,8
@@
*/
#define AD7150_STATUS 0
-#define AD7150_STATUS_OUT1
(1 <<
3)
-#define AD7150_STATUS_OUT2
(1 <<
5)
+#define AD7150_STATUS_OUT1
BIT(
3)
+#define AD7150_STATUS_OUT2
BIT(
5)
#define AD7150_CH1_DATA_HIGH 1
#define AD7150_CH2_DATA_HIGH 3
#define AD7150_CH1_AVG_HIGH 5
@@
-36,7
+36,7
@@
#define AD7150_CH2_TIMEOUT 13
#define AD7150_CH2_SETUP 14
#define AD7150_CFG 15
-#define AD7150_CFG_FIX
(1 <<
7)
+#define AD7150_CFG_FIX
BIT(
7)
#define AD7150_PD_TIMER 16
#define AD7150_CH1_CAPDAC 17
#define AD7150_CH2_CAPDAC 18