summary refs log tree commit diff
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorBárbara Fernandes <barbara.fernandes@usp.br>2019-02-22 17:31:57 -0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-04-04 20:19:45 +0100
commitc1fc8bb0f6587995b080f81422ab496b34e77a4d (patch)
tree09fd8aaa0a65085b804fcb34e45cee3b77fdd74f /drivers/iio/adc
parent66deb5c170a596e45ad1d00720365e1a07487f58 (diff)
downloadlinux-c1fc8bb0f6587995b080f81422ab496b34e77a4d.tar.gz
iio:adc:ad7923: Use BIT macro instead of bitshift
Replace use of the operation '<<' by the BIT macro. Solves checkpath.pl's
message:

CHECK: Prefer using the BIT macro

Signed-off-by: Bárbara Fernandes <barbara.fernandes@usp.br>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r--drivers/iio/adc/ad7923.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/adc/ad7923.c b/drivers/iio/adc/ad7923.c
index ebae7522710a..b39ea834cdd6 100644
--- a/drivers/iio/adc/ad7923.c
+++ b/drivers/iio/adc/ad7923.c
@@ -24,9 +24,9 @@
 #include <linux/iio/trigger_consumer.h>
 #include <linux/iio/triggered_buffer.h>
 
-#define AD7923_WRITE_CR		(1 << 11)	/* write control register */
-#define AD7923_RANGE		(1 << 1)	/* range to REFin */
-#define AD7923_CODING		(1 << 0)	/* coding is straight binary */
+#define AD7923_WRITE_CR		BIT(11)		/* write control register */
+#define AD7923_RANGE		BIT(1)		/* range to REFin */
+#define AD7923_CODING		BIT(0)		/* coding is straight binary */
 #define AD7923_PM_MODE_AS	(1)		/* auto shutdown */
 #define AD7923_PM_MODE_FS	(2)		/* full shutdown */
 #define AD7923_PM_MODE_OPS	(3)		/* normal operation */