diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-12-11 13:45:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-17 16:08:56 -0500 |
commit | 80ac4b8aa14f18819607851957e213452d0b8d28 (patch) | |
tree | 10be43ba5d41ae62d13df55e6f4c45809a4aacef /drivers/iio | |
parent | cb4417f9db0e386b918d3c2dcfdbdacb513b852a (diff) |
iio:light:adjd_s311 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/light/adjd_s311.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c index 83d15c5baf64..f3068477b466 100644 --- a/drivers/iio/light/adjd_s311.c +++ b/drivers/iio/light/adjd_s311.c | |||
@@ -155,7 +155,12 @@ done: | |||
155 | BIT(IIO_CHAN_INFO_INT_TIME), \ | 155 | BIT(IIO_CHAN_INFO_INT_TIME), \ |
156 | .channel2 = (IIO_MOD_LIGHT_##_color), \ | 156 | .channel2 = (IIO_MOD_LIGHT_##_color), \ |
157 | .scan_index = (_scan_idx), \ | 157 | .scan_index = (_scan_idx), \ |
158 | .scan_type = IIO_ST('u', 10, 16, 0), \ | 158 | .scan_type = { \ |
159 | .sign = 'u', \ | ||
160 | .realbits = 10, \ | ||
161 | .storagebits = 16, \ | ||
162 | .endianness = IIO_CPU, \ | ||
163 | }, \ | ||
159 | } | 164 | } |
160 | 165 | ||
161 | static const struct iio_chan_spec adjd_s311_channels[] = { | 166 | static const struct iio_chan_spec adjd_s311_channels[] = { |