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

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

+5 -1
+5 -1
drivers/iio/dac/ad5504.c
··· 261 261 .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ 262 262 .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \ 263 263 .address = AD5504_ADDR_DAC(_chan), \ 264 - .scan_type = IIO_ST('u', 12, 16, 0), \ 264 + .scan_type = { \ 265 + .sign = 'u', \ 266 + .realbits = 12, \ 267 + .storagebits = 16, \ 268 + }, \ 265 269 .ext_info = ad5504_ext_info, \ 266 270 } 267 271