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

iio:dac:ad5421 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/ad5421.c
··· 114 114 BIT(IIO_CHAN_INFO_CALIBBIAS), 115 115 .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE) | 116 116 BIT(IIO_CHAN_INFO_OFFSET), 117 - .scan_type = IIO_ST('u', 16, 16, 0), 117 + .scan_type = { 118 + .sign = 'u', 119 + .realbits = 16, 120 + .storagebits = 16, 121 + }, 118 122 .event_spec = ad5421_current_event, 119 123 .num_event_specs = ARRAY_SIZE(ad5421_current_event), 120 124 },