aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2013-12-11 13:45:00 -0500
committerJonathan Cameron <jic23@kernel.org>2013-12-17 15:57:31 -0500
commitc865b537e9af9587f578a325736149f82888cd58 (patch)
treecbfa6a3c932f30b47038d12be176f41f82ae6af0
parent81d49bc622595e6c3c5a92e851ac234f0eb96b68 (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.c7
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
113static const struct ad5360_chip_info ad5360_chip_info_tbl[] = { 118static const struct ad5360_chip_info ad5360_chip_info_tbl[] = {