Skip to content

Commit cb9d90f

Browse files
committed
iio:dac:ad5791 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 560101d commit cb9d90f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎drivers/iio/dac/ad5791.c‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static const struct iio_chan_spec_ext_info ad5791_ext_info[] = {
293293
{ },
294294
};
295295

296-
#define AD5791_CHAN(bits, shift) { \
296+
#define AD5791_CHAN(bits, _shift) { \
297297
.type = IIO_VOLTAGE, \
298298
.output = 1, \
299299
.indexed = 1, \
@@ -302,7 +302,12 @@ static const struct iio_chan_spec_ext_info ad5791_ext_info[] = {
302302
.info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \
303303
.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE) | \
304304
BIT(IIO_CHAN_INFO_OFFSET), \
305-
.scan_type = IIO_ST('u', bits, 24, shift), \
305+
.scan_type = { \
306+
.sign = 'u', \
307+
.realbits = (bits), \
308+
.storagebits = 24, \
309+
.shift = (_shift), \
310+
}, \
306311
.ext_info = ad5791_ext_info, \
307312
}
308313

0 commit comments

Comments
 (0)