iio:light:tcs3472 replaces IIO_ST macro with explicit entries to struct scan_type
authorJonathan Cameron <jic23@kernel.org>
Wed, 11 Dec 2013 18:45:00 +0000 (18:45 +0000)
committerJonathan Cameron <jic23@kernel.org>
Tue, 17 Dec 2013 21:39:02 +0000 (21:39 +0000)
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>
drivers/iio/light/tcs3472.c

index 45df2204614a866e77597d3bead60a16ac085e39..887fecf1f9bb8eccb67a7eb1135428ade7ed71f0 100644 (file)
@@ -67,7 +67,12 @@ struct tcs3472_data {
        .channel2 = IIO_MOD_LIGHT_##_color, \
        .address = _addr, \
        .scan_index = _si, \
-       .scan_type = IIO_ST('u', 16, 16, 0), \
+       .scan_type = { \
+               .sign = 'u', \
+               .realbits = 16, \
+               .storagebits = 16, \
+               .endianness = IIO_CPU, \
+       }, \
 }
 
 static const int tcs3472_agains[] = { 1, 4, 16, 60 };
This page took 0.025229 seconds and 5 git commands to generate.