diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-12-11 13:45:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-17 15:57:31 -0500 |
commit | c865b537e9af9587f578a325736149f82888cd58 (patch) | |
tree | cbfa6a3c932f30b47038d12be176f41f82ae6af0 | |
parent | 81d49bc622595e6c3c5a92e851ac234f0eb96b68 (diff) |
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>
-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 { | |||
107 | BIT(IIO_CHAN_INFO_OFFSET) | \ | 107 | BIT(IIO_CHAN_INFO_OFFSET) | \ |
108 | BIT(IIO_CHAN_INFO_CALIBSCALE) | \ | 108 | BIT(IIO_CHAN_INFO_CALIBSCALE) | \ |
109 | BIT(IIO_CHAN_INFO_CALIBBIAS), \ | 109 | BIT(IIO_CHAN_INFO_CALIBBIAS), \ |
110 | .scan_type = IIO_ST('u', (bits), 16, 16 - (bits)) \ | 110 | .scan_type = { \ |
111 | .sign = 'u', \ | ||
112 | .realbits = (bits), \ | ||
113 | .storagebits = 16, \ | ||
114 | .shift = 16 - (bits), \ | ||
115 | }, \ | ||
111 | } | 116 | } |
112 | 117 | ||
113 | static const struct ad5360_chip_info ad5360_chip_info_tbl[] = { | 118 | static const struct ad5360_chip_info ad5360_chip_info_tbl[] = { |