Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3 -3
+3 -3
drivers/iio/light/lm3533-als.c
··· 231 231 .channel = _channel, \ 232 232 .indexed = true, \ 233 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 237 static const struct iio_chan_spec lm3533_als_channels[] = { ··· 239 239 .type = IIO_LIGHT, 240 240 .channel = 0, 241 241 .indexed = true, 242 - .info_mask = (IIO_CHAN_INFO_AVERAGE_RAW_SEPARATE_BIT | 243 - IIO_CHAN_INFO_RAW_SEPARATE_BIT), 242 + .info_mask_separate = BIT(IIO_CHAN_INFO_AVERAGE_RAW) | 243 + BIT(IIO_CHAN_INFO_RAW), 244 244 }, 245 245 CHANNEL_CURRENT(0), 246 246 CHANNEL_CURRENT(1),