summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Cameron2013-02-27 20:39:52 +0100
committerJonathan Cameron2013-03-17 20:49:41 +0100
commit93a9fdff2106f34747ec934812c89fa8b28b419f (patch)
tree6b023f999c0e63cf645e8c553679b3abf9ee7b92
parentstaging:iio:light:isl29018 move to info_mask_(shared_by_type/separate) (diff)
downloadkernel-qcow2-linux-93a9fdff2106f34747ec934812c89fa8b28b419f.tar.gz
kernel-qcow2-linux-93a9fdff2106f34747ec934812c89fa8b28b419f.tar.xz
kernel-qcow2-linux-93a9fdff2106f34747ec934812c89fa8b28b419f.zip
staging:iio:light:isl29028 move to info_mask_(shared_by_type/separate)
The original info_mask is going away in favour of the broken out versions. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
-rw-r--r--drivers/staging/iio/light/isl29028.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
index e52af77f7782..8bb0d03627f2 100644
--- a/drivers/staging/iio/light/isl29028.c
+++ b/drivers/staging/iio/light/isl29028.c
@@ -391,15 +391,15 @@ static const struct attribute_group isl29108_group = {
static const struct iio_chan_spec isl29028_channels[] = {
{
.type = IIO_LIGHT,
- .info_mask = IIO_CHAN_INFO_PROCESSED_SEPARATE_BIT |
- IIO_CHAN_INFO_SCALE_SEPARATE_BIT,
+ .info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED) |
+ BIT(IIO_CHAN_INFO_SCALE),
}, {
.type = IIO_INTENSITY,
- .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT,
+ .info_mask_separate = BIT(IIO_CHAN_INFO_RAW),
}, {
.type = IIO_PROXIMITY,
- .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT |
- IIO_CHAN_INFO_SAMP_FREQ_SEPARATE_BIT,
+ .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) |
+ BIT(IIO_CHAN_INFO_SAMP_FREQ),
}
};