diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-12-11 18:45:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-17 21:04:47 +0000 |
commit | 64665dd37353782db33edfc41c5c2870879581b1 (patch) | |
tree | ba6500525a0c36cbd9b41a93ab82dd9dfbaaa149 /drivers/iio | |
parent | 44ba1593acfe071e9d920157308dec1d2154ff2f (diff) | |
download | linux-64665dd37353782db33edfc41c5c2870879581b1.tar.gz linux-64665dd37353782db33edfc41c5c2870879581b1.tar.bz2 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>
Diffstat (limited to 'drivers/iio')
-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, \ } |