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

iio:dac:ad5380 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/ad5380.c
··· 261 261 BIT(IIO_CHAN_INFO_CALIBSCALE) | \ 262 262 BIT(IIO_CHAN_INFO_CALIBBIAS), \ 263 263 .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \ 264 - .scan_type = IIO_ST('u', (_bits), 16, 14 - (_bits)), \ 264 + .scan_type = { \ 265 + .sign = 'u', \ 266 + .realbits = (_bits), \ 267 + .storagebits = 16, \ 268 + .shift = 14 - (_bits), \ 269 + }, \ 265 270 .ext_info = ad5380_ext_info, \ 266 271 } 267 272