mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
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>
This commit is contained in:
parent
0112f5218d
commit
d113de62ba
1 changed files with 3 additions and 3 deletions
|
@ -231,7 +231,7 @@ static int lm3533_als_read_raw(struct iio_dev *indio_dev,
|
||||||
.channel = _channel, \
|
.channel = _channel, \
|
||||||
.indexed = true, \
|
.indexed = true, \
|
||||||
.output = 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[] = {
|
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,
|
.type = IIO_LIGHT,
|
||||||
.channel = 0,
|
.channel = 0,
|
||||||
.indexed = true,
|
.indexed = true,
|
||||||
.info_mask = (IIO_CHAN_INFO_AVERAGE_RAW_SEPARATE_BIT |
|
.info_mask_separate = BIT(IIO_CHAN_INFO_AVERAGE_RAW) |
|
||||||
IIO_CHAN_INFO_RAW_SEPARATE_BIT),
|
BIT(IIO_CHAN_INFO_RAW),
|
||||||
},
|
},
|
||||||
CHANNEL_CURRENT(0),
|
CHANNEL_CURRENT(0),
|
||||||
CHANNEL_CURRENT(1),
|
CHANNEL_CURRENT(1),
|
||||||
|
|
Loading…
Reference in a new issue