staging:iio:accel:ad7780 unwind use of IIO_CHAN macro.
authorJonathan Cameron <jic23@kernel.org>
Fri, 13 Apr 2012 09:42:56 +0000 (10:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2012 18:08:04 +0000 (11:08 -0700)
This macro is being removed to simplify ongoing maintenance
so we need to unwind and remaining users.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/ad7780.c

index a13e58c814e66f19b5c1a66eb8454100371ca77b..4f0a6c9fbf947a17b4fe6021ebb8f91b55671f40 100644 (file)
@@ -126,14 +126,32 @@ static int ad7780_read_raw(struct iio_dev *indio_dev,
 
 static const struct ad7780_chip_info ad7780_chip_info_tbl[] = {
        [ID_AD7780] = {
-               .channel = IIO_CHAN(IIO_VOLTAGE, 0, 1, 0, NULL, 0, 0,
-                                   IIO_CHAN_INFO_SCALE_SHARED_BIT,
-                                   0, 0, IIO_ST('s', 24, 32, 8), 0),
+               .channel = {
+                       .type = IIO_VOLTAGE,
+                       .indexed = 1,
+                       .channel = 0,
+                       .info_mask = IIO_CHAN_INFO_SCALE_SHARED_BIT,
+                       .scan_type = {
+                               .sign = 's',
+                               .realbits = 24,
+                               .storagebits = 32,
+                               .shift = 8,
+                       },
+               },
        },
        [ID_AD7781] = {
-               .channel = IIO_CHAN(IIO_VOLTAGE, 0, 1, 0, NULL, 0, 0,
-                                   IIO_CHAN_INFO_SCALE_SHARED_BIT,
-                                   0, 0, IIO_ST('s', 20, 32, 12), 0),
+               .channel = {
+                       .type = IIO_VOLTAGE,
+                       .indexed = 1,
+                       .channel = 0,
+                       .info_mask = IIO_CHAN_INFO_SCALE_SHARED_BIT,
+                       .scan_type = {
+                               .sign = 's',
+                               .realbits = 20,
+                               .storagebits = 32,
+                               .shift = 12,
+                       },
+               },
        },
 };