diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-12-11 19:45:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-17 21:57:31 +0100 |
commit | c865b537e9af9587f578a325736149f82888cd58 (patch) | |
tree | cbfa6a3c932f30b47038d12be176f41f82ae6af0 /drivers/iio | |
parent | iio:dac:ad5064 replaces IIO_ST macro with explicit entries to struct scan_type (diff) | |
download | linux-c865b537e9af9587f578a325736149f82888cd58.tar.xz 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[] = { |