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

iio:dac:ad5449 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/ad5449.c
··· 204 204 .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \ 205 205 BIT(IIO_CHAN_INFO_SCALE), \ 206 206 .address = (chan), \ 207 - .scan_type = IIO_ST('u', (bits), 16, 12 - (bits)), \ 207 + .scan_type = { \ 208 + .sign = 'u', \ 209 + .realbits = (bits), \ 210 + .storagebits = 16, \ 211 + .shift = 12 - (bits), \ 212 + }, \ 208 213 } 209 214 210 215 #define DECLARE_AD5449_CHANNELS(name, bits) \