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

iio:dac:ad5624r 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>

+6 -1
+6 -1
drivers/iio/dac/ad5624r_spi.c
··· 176 176 .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ 177 177 .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \ 178 178 .address = (_chan), \ 179 - .scan_type = IIO_ST('u', (_bits), 16, 16 - (_bits)), \ 179 + .scan_type = { \ 180 + .sign = 'u', \ 181 + .realbits = (_bits), \ 182 + .storagebits = 16, \ 183 + .shift = 16 - (_bits), \ 184 + }, \ 180 185 .ext_info = ad5624r_ext_info, \ 181 186 } 182 187