diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-12-11 18:45:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-17 20:57:31 +0000 |
commit | c865b537e9af9587f578a325736149f82888cd58 (patch) | |
tree | cbfa6a3c932f30b47038d12be176f41f82ae6af0 /drivers/iio | |
parent | 81d49bc622595e6c3c5a92e851ac234f0eb96b68 (diff) | |
download | linux-c865b537e9af9587f578a325736149f82888cd58.tar.gz linux-c865b537e9af9587f578a325736149f82888cd58.tar.bz2 linux-c865b537e9af9587f578a325736149f82888cd58.zip |
iio:dac:ad5360 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/ad5360.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/iio/dac/ad5360.c b/drivers/iio/dac/ad5360.c index b968af50db0a..64634d7f578e 100644 --- a/drivers/iio/dac/ad5360.c +++ b/drivers/iio/dac/ad5360.c @@ -107,7 +107,12 @@ enum ad5360_type { 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), \ + }, \ } static const struct ad5360_chip_info ad5360_chip_info_tbl[] = { |