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

iio:dac:ad5755 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/ad5755.c
··· 392 392 BIT(IIO_CHAN_INFO_OFFSET) | \ 393 393 BIT(IIO_CHAN_INFO_CALIBSCALE) | \ 394 394 BIT(IIO_CHAN_INFO_CALIBBIAS), \ 395 - .scan_type = IIO_ST('u', (_bits), 16, 16 - (_bits)), \ 395 + .scan_type = { \ 396 + .sign = 'u', \ 397 + .realbits = (_bits), \ 398 + .storagebits = 16, \ 399 + .shift = 16 - (_bits), \ 400 + }, \ 396 401 .ext_info = ad5755_ext_info, \ 397 402 } 398 403