diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-02-27 14:33:14 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-03-17 15:49:36 -0400 |
commit | d113de62bae0a42e903501ed034cb0d73e140bac (patch) | |
tree | 4423aadcd72368ab953f57af1cd88f23a4feb12e /drivers/iio | |
parent | 0112f5218df22368060cdc3783e3f32e5319eb3e (diff) |
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')
-rw-r--r-- | drivers/iio/light/lm3533-als.c | 6 |
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, | |||
231 | .channel = _channel, \ | 231 | .channel = _channel, \ |
232 | .indexed = true, \ | 232 | .indexed = true, \ |
233 | .output = true, \ | 233 | .output = true, \ |
234 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT, \ | 234 | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ |
235 | } | 235 | } |
236 | 236 | ||
237 | static const struct iio_chan_spec lm3533_als_channels[] = { | 237 | static const struct iio_chan_spec lm3533_als_channels[] = { |
@@ -239,8 +239,8 @@ static const struct iio_chan_spec lm3533_als_channels[] = { | |||
239 | .type = IIO_LIGHT, | 239 | .type = IIO_LIGHT, |
240 | .channel = 0, | 240 | .channel = 0, |
241 | .indexed = true, | 241 | .indexed = true, |
242 | .info_mask = (IIO_CHAN_INFO_AVERAGE_RAW_SEPARATE_BIT | | 242 | .info_mask_separate = BIT(IIO_CHAN_INFO_AVERAGE_RAW) | |
243 | IIO_CHAN_INFO_RAW_SEPARATE_BIT), | 243 | BIT(IIO_CHAN_INFO_RAW), |
244 | }, | 244 | }, |
245 | CHANNEL_CURRENT(0), | 245 | CHANNEL_CURRENT(0), |
246 | CHANNEL_CURRENT(1), | 246 | CHANNEL_CURRENT(1), |