diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-12-11 19:45:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-17 22:04:47 +0100 |
commit | 64665dd37353782db33edfc41c5c2870879581b1 (patch) | |
tree | ba6500525a0c36cbd9b41a93ab82dd9dfbaaa149 | |
parent | iio:dac:ad5686 replaces IIO_ST macro with explicit entries to struct scan_type (diff) | |
download | linux-64665dd37353782db33edfc41c5c2870879581b1.tar.xz linux-64665dd37353782db33edfc41c5c2870879581b1.zip |
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>
-rw-r--r-- | drivers/iio/dac/ad5755.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/iio/dac/ad5755.c b/drivers/iio/dac/ad5755.c index c494276da4b0..a7c851f62d7c 100644 --- a/drivers/iio/dac/ad5755.c +++ b/drivers/iio/dac/ad5755.c @@ -392,7 +392,12 @@ static const struct iio_chan_spec_ext_info ad5755_ext_info[] = { BIT(IIO_CHAN_INFO_OFFSET) | \ BIT(IIO_CHAN_INFO_CALIBSCALE) | \ BIT(IIO_CHAN_INFO_CALIBBIAS), \ - .scan_type = IIO_ST('u', (_bits), 16, 16 - (_bits)), \ + .scan_type = { \ + .sign = 'u', \ + .realbits = (_bits), \ + .storagebits = 16, \ + .shift = 16 - (_bits), \ + }, \ .ext_info = ad5755_ext_info, \ } |