Commit d292ef8d authored by Jonathan Cameron's avatar Jonathan Cameron

iio:light:tsl2563 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: default avatarJonathan Cameron <jic23@kernel.org>
cc: Jon Brenner <jbrenner@taosinc.com>
parent d113de62
...@@ -530,14 +530,14 @@ static const struct iio_chan_spec tsl2563_channels[] = { ...@@ -530,14 +530,14 @@ static const struct iio_chan_spec tsl2563_channels[] = {
{ {
.type = IIO_LIGHT, .type = IIO_LIGHT,
.indexed = 1, .indexed = 1,
.info_mask = IIO_CHAN_INFO_PROCESSED_SEPARATE_BIT, .info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED),
.channel = 0, .channel = 0,
}, { }, {
.type = IIO_INTENSITY, .type = IIO_INTENSITY,
.modified = 1, .modified = 1,
.channel2 = IIO_MOD_LIGHT_BOTH, .channel2 = IIO_MOD_LIGHT_BOTH,
.info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) |
IIO_CHAN_INFO_CALIBSCALE_SEPARATE_BIT, BIT(IIO_CHAN_INFO_CALIBSCALE),
.event_mask = (IIO_EV_BIT(IIO_EV_TYPE_THRESH, .event_mask = (IIO_EV_BIT(IIO_EV_TYPE_THRESH,
IIO_EV_DIR_RISING) | IIO_EV_DIR_RISING) |
IIO_EV_BIT(IIO_EV_TYPE_THRESH, IIO_EV_BIT(IIO_EV_TYPE_THRESH,
...@@ -546,8 +546,8 @@ static const struct iio_chan_spec tsl2563_channels[] = { ...@@ -546,8 +546,8 @@ static const struct iio_chan_spec tsl2563_channels[] = {
.type = IIO_INTENSITY, .type = IIO_INTENSITY,
.modified = 1, .modified = 1,
.channel2 = IIO_MOD_LIGHT_IR, .channel2 = IIO_MOD_LIGHT_IR,
.info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) |
IIO_CHAN_INFO_CALIBSCALE_SEPARATE_BIT, BIT(IIO_CHAN_INFO_CALIBSCALE),
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment