summaryrefslogtreecommitdiffstats
path: root/drivers/iio/light/cm3323.c
diff options
context:
space:
mode:
authorHartmut Knaack <knaack.h@gmx.de>2015-06-18 00:32:04 +0200
committerJonathan Cameron <jic23@kernel.org>2015-06-21 14:28:08 +0100
commit054101c186b9e41d2b57543070c4a520d38402da (patch)
treefb15b0959fb6324fa8d8c0e17e9bfe1805e8138b /drivers/iio/light/cm3323.c
parent0ff8c78df8d7c32394b887de4d935962a7f373ce (diff)
downloadlinux-054101c186b9e41d2b57543070c4a520d38402da.tar.bz2
iio:light:cm3323: make use of GENMASK
Use GENMASK to define the integration time bitmask. Signed-off-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light/cm3323.c')
-rw-r--r--drivers/iio/light/cm3323.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/cm3323.c b/drivers/iio/light/cm3323.c
index af1b1b025258..57ff0a10890e 100644
--- a/drivers/iio/light/cm3323.c
+++ b/drivers/iio/light/cm3323.c
@@ -29,7 +29,7 @@
#define CM3323_CONF_SD_BIT BIT(0) /* sensor disable */
#define CM3323_CONF_AF_BIT BIT(1) /* auto/manual force mode */
-#define CM3323_CONF_IT_MASK (BIT(4) | BIT(5) | BIT(6))
+#define CM3323_CONF_IT_MASK GENMASK(6, 4)
#define CM3323_CONF_IT_SHIFT 4
#define CM3323_INT_TIME_AVAILABLE "0.04 0.08 0.16 0.32 0.64 1.28"