summaryrefslogtreecommitdiffstats
path: root/drivers/iio/light/lm3533-als.c
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2013-02-27 20:33:14 +0100
committerJonathan Cameron <jic23@kernel.org>2013-03-17 20:49:36 +0100
commitd113de62bae0a42e903501ed034cb0d73e140bac (patch)
tree4423aadcd72368ab953f57af1cd88f23a4feb12e /drivers/iio/light/lm3533-als.c
parentiio:light:adjd_s311 move to info_mask_(shared_by_type/separate) (diff)
downloadlinux-d113de62bae0a42e903501ed034cb0d73e140bac.tar.xz
linux-d113de62bae0a42e903501ed034cb0d73e140bac.zip
iio:light:lm3533 move to info_mask_(shared_by_type/separate)
The original info_mask is going away in favour of the broken out versions. Signed-off-by: Jonathan Cameron <jic23@kernel.org> cc: Johan Hovold <jhovold@gmail.com>
Diffstat (limited to 'drivers/iio/light/lm3533-als.c')
-rw-r--r--drivers/iio/light/lm3533-als.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/light/lm3533-als.c b/drivers/iio/light/lm3533-als.c
index 7503012ce933..5fa31a4ef82a 100644
--- a/drivers/iio/light/lm3533-als.c
+++ b/drivers/iio/light/lm3533-als.c
@@ -231,7 +231,7 @@ static int lm3533_als_read_raw(struct iio_dev *indio_dev,
.channel = _channel, \
.indexed = true, \
.output = true, \
- .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT, \
+ .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \
}
static const struct iio_chan_spec lm3533_als_channels[] = {
@@ -239,8 +239,8 @@ static const struct iio_chan_spec lm3533_als_channels[] = {
.type = IIO_LIGHT,
.channel = 0,
.indexed = true,
- .info_mask = (IIO_CHAN_INFO_AVERAGE_RAW_SEPARATE_BIT |
- IIO_CHAN_INFO_RAW_SEPARATE_BIT),
+ .info_mask_separate = BIT(IIO_CHAN_INFO_AVERAGE_RAW) |
+ BIT(IIO_CHAN_INFO_RAW),
},
CHANNEL_CURRENT(0),
CHANNEL_CURRENT(1),