]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iio: light: vcnl4000: Use BIT() macro
authorPeter Meerwald-Stadler <pmeerw@pmeerw.net>
Tue, 5 Jul 2016 10:23:19 +0000 (12:23 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 10 Jul 2016 13:44:05 +0000 (14:44 +0100)
Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/vcnl4000.c

index 071ff97994e78005d3e77f900c2ae02c7399acc5..7f247edb134bd452f4e8e2cca68fea0aff0ac470 100644 (file)
 #define VCNL4000_PS_MOD_ADJ    0x8a /* Proximity modulator timing adjustment */
 
 /* Bit masks for COMMAND register */
-#define VCNL4000_AL_RDY                0x40 /* ALS data ready? */
-#define VCNL4000_PS_RDY                0x20 /* proximity data ready? */
-#define VCNL4000_AL_OD         0x10 /* start on-demand ALS measurement */
-#define VCNL4000_PS_OD         0x08 /* start on-demand proximity measurement */
+#define VCNL4000_AL_RDY                BIT(6) /* ALS data ready? */
+#define VCNL4000_PS_RDY                BIT(5) /* proximity data ready? */
+#define VCNL4000_AL_OD         BIT(4) /* start on-demand ALS measurement */
+#define VCNL4000_PS_OD         BIT(3) /* start on-demand proximity measurement */
 
 struct vcnl4000_data {
        struct i2c_client *client;