]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
iio:adc:ti-adc081 move to info_mask_(shared_by_type/separate)
authorJonathan Cameron <jic23@kernel.org>
Wed, 27 Feb 2013 19:06:39 +0000 (19:06 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 17 Mar 2013 19:49:29 +0000 (19:49 +0000)
The original info_mask is going away in favour of the broken out versions.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/iio/adc/ti-adc081c.c

index f4a46dd8f43b0c2c91539a59f07a5c93388e59ef..2826faae706c11a85f76aa8afa2586bfacf8238c 100644 (file)
@@ -55,8 +55,8 @@ static int adc081c_read_raw(struct iio_dev *iio,
 
 static const struct iio_chan_spec adc081c_channel = {
        .type = IIO_VOLTAGE,
-       .info_mask = IIO_CHAN_INFO_SCALE_SHARED_BIT |
-                    IIO_CHAN_INFO_RAW_SEPARATE_BIT,
+       .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE),
+       .info_mask_separate = BIT(IIO_CHAN_INFO_RAW),
 };
 
 static const struct iio_info adc081c_info = {