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:39:02 -0500 |
commit | 6b25f6e6b718b3cabda3001df9cfec3406eb9f7c (patch) | |
tree | c60488ef1dee26b0c01f160b4612a30f79a5bbf9 | |
parent | 80ac4b8aa14f18819607851957e213452d0b8d28 (diff) |
iio:light:tcs3472 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/light/tcs3472.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/iio/light/tcs3472.c b/drivers/iio/light/tcs3472.c index 45df2204614a..887fecf1f9bb 100644 --- a/drivers/iio/light/tcs3472.c +++ b/drivers/iio/light/tcs3472.c | |||
@@ -67,7 +67,12 @@ struct tcs3472_data { | |||
67 | .channel2 = IIO_MOD_LIGHT_##_color, \ | 67 | .channel2 = IIO_MOD_LIGHT_##_color, \ |
68 | .address = _addr, \ | 68 | .address = _addr, \ |
69 | .scan_index = _si, \ | 69 | .scan_index = _si, \ |
70 | .scan_type = IIO_ST('u', 16, 16, 0), \ | 70 | .scan_type = { \ |
71 | .sign = 'u', \ | ||
72 | .realbits = 16, \ | ||
73 | .storagebits = 16, \ | ||
74 | .endianness = IIO_CPU, \ | ||
75 | }, \ | ||
71 | } | 76 | } |
72 | 77 | ||
73 | static const int tcs3472_agains[] = { 1, 4, 16, 60 }; | 78 | static const int tcs3472_agains[] = { 1, 4, 16, 60 }; |