aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/industrialio-core.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-10-26 12:41:35 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-26 19:35:04 -0500
commit924f8a21dd13223cc1493a916c6769cf73e0d45e (patch)
tree60ec15425748b95730cb779f618d0ab6d0d0fd78 /drivers/staging/iio/industrialio-core.c
parent3014cd97e56d312865d670653adec338a8e5fc0e (diff)
staging:iio: Do not use bitmasks for channel info addresses
Currently the iio framework uses bitmasks for the address field of channel info attributes. This is for historical reasons and no longer required since it will only ever query a single info attribute at once. This patch changes the code to use the non-shifted iio_chan_info_enum values for the info attribute address. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/industrialio-core.c')
-rw-r--r--drivers/staging/iio/industrialio-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/industrialio-core.c b/drivers/staging/iio/industrialio-core.c
index 1c53b9acae8..63681a61d5c 100644
--- a/drivers/staging/iio/industrialio-core.c
+++ b/drivers/staging/iio/industrialio-core.c
@@ -603,7 +603,7 @@ static int iio_device_add_channel_sysfs(struct iio_dev *indio_dev,
603 chan, 603 chan,
604 &iio_read_channel_info, 604 &iio_read_channel_info,
605 &iio_write_channel_info, 605 &iio_write_channel_info,
606 (1 << i), 606 i,
607 !(i%2), 607 !(i%2),
608 &indio_dev->dev, 608 &indio_dev->dev,
609 &indio_dev->channel_attr_list); 609 &indio_dev->channel_attr_list);