summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2013-02-27 19:06:39 +0000
committerJonathan Cameron <jic23@kernel.org>2013-03-17 19:49:29 +0000
commitc8fe38a7dda0ff73ec5f9453fcefdd6ab84fcf71 (patch)
tree469f53d3f0ca94b213519d5cf13c408d77faec1f /drivers/iio
parentfb45a1b344884846e543a964fa5f96ba5777967f (diff)
downloadop-kernel-dev-c8fe38a7dda0ff73ec5f9453fcefdd6ab84fcf71.zip
op-kernel-dev-c8fe38a7dda0ff73ec5f9453fcefdd6ab84fcf71.tar.gz
iio:adc:ti-adc081 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: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/ti-adc081c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/adc/ti-adc081c.c b/drivers/iio/adc/ti-adc081c.c
index f4a46dd..2826faa 100644
--- a/drivers/iio/adc/ti-adc081c.c
+++ b/drivers/iio/adc/ti-adc081c.c
@@ -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 = {
OpenPOWER on IntegriCloud