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

iio:dac:ad5380 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: Lars-Peter Clausen <lars@metafoo.de>

+4 -4
+4 -4
drivers/iio/dac/ad5380.c
··· 257 257 .type = IIO_VOLTAGE, \ 258 258 .indexed = 1, \ 259 259 .output = 1, \ 260 - .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | \ 261 - IIO_CHAN_INFO_SCALE_SHARED_BIT | \ 262 - IIO_CHAN_INFO_CALIBSCALE_SEPARATE_BIT | \ 263 - IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT, \ 260 + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \ 261 + BIT(IIO_CHAN_INFO_CALIBSCALE) | \ 262 + BIT(IIO_CHAN_INFO_CALIBBIAS), \ 263 + .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \ 264 264 .scan_type = IIO_ST('u', (_bits), 16, 14 - (_bits)), \ 265 265 .ext_info = ad5380_ext_info, \ 266 266 }