staging:iio:light:cm3218 move to info_mask_(shared_by_type/separate)
Dan Willemsen [Thu, 22 Aug 2013 22:06:28 +0000 (15:06 -0700)]
The original info_mask is going away in favour of the broken out
versions.

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

drivers/staging/iio/light/cm3218.c

index 6f9a9a6..9edb9da 100644 (file)
@@ -382,10 +382,10 @@ static const struct iio_chan_spec_ext_info cm3218_ext_info[] = {
 static const struct iio_chan_spec cm3218_channels[] = {
        {
                .type = IIO_LIGHT,
-               .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT |
-                               IIO_CHAN_INFO_SCALE_SEPARATE_BIT |
-                               IIO_CHAN_INFO_PEAK_SEPARATE_BIT |
-                               IIO_CHAN_INFO_SAMP_FREQ_SEPARATE_BIT,
+               .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) |
+                               BIT(IIO_CHAN_INFO_SCALE) |
+                               BIT(IIO_CHAN_INFO_PEAK) |
+                               BIT(IIO_CHAN_INFO_SAMP_FREQ),
                .ext_info = cm3218_ext_info,
        },
 };