Skip to content

Commit da9b1a2

Browse files
committed
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>
1 parent c865b53 commit da9b1a2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎drivers/iio/dac/ad5380.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,12 @@ static struct iio_chan_spec_ext_info ad5380_ext_info[] = {
261261
BIT(IIO_CHAN_INFO_CALIBSCALE) | \
262262
BIT(IIO_CHAN_INFO_CALIBBIAS), \
263263
.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+
}, \
265270
.ext_info = ad5380_ext_info, \
266271
}
267272

0 commit comments

Comments
 (0)