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

staging:iio:light:isl29028 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>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>

+5 -5
+5 -5
drivers/staging/iio/light/isl29028.c
··· 391 391 static const struct iio_chan_spec isl29028_channels[] = { 392 392 { 393 393 .type = IIO_LIGHT, 394 - .info_mask = IIO_CHAN_INFO_PROCESSED_SEPARATE_BIT | 395 - IIO_CHAN_INFO_SCALE_SEPARATE_BIT, 394 + .info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED) | 395 + BIT(IIO_CHAN_INFO_SCALE), 396 396 }, { 397 397 .type = IIO_INTENSITY, 398 - .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT, 398 + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), 399 399 }, { 400 400 .type = IIO_PROXIMITY, 401 - .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | 402 - IIO_CHAN_INFO_SAMP_FREQ_SEPARATE_BIT, 401 + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | 402 + BIT(IIO_CHAN_INFO_SAMP_FREQ), 403 403 } 404 404 }; 405 405