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

iio:dac:ad5791 replaces IIO_ST macro with explicit entries to struct scan_type

IIO_ST is going away as it is a pain to maintain.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>

+7 -2
+7 -2
drivers/iio/dac/ad5791.c
··· 293 293 { }, 294 294 }; 295 295 296 - #define AD5791_CHAN(bits, shift) { \ 296 + #define AD5791_CHAN(bits, _shift) { \ 297 297 .type = IIO_VOLTAGE, \ 298 298 .output = 1, \ 299 299 .indexed = 1, \ ··· 302 302 .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ 303 303 .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE) | \ 304 304 BIT(IIO_CHAN_INFO_OFFSET), \ 305 - .scan_type = IIO_ST('u', bits, 24, shift), \ 305 + .scan_type = { \ 306 + .sign = 'u', \ 307 + .realbits = (bits), \ 308 + .storagebits = 24, \ 309 + .shift = (_shift), \ 310 + }, \ 306 311 .ext_info = ad5791_ext_info, \ 307 312 } 308 313