aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2013-02-27 14:43:52 -0500
committerJonathan Cameron <jic23@kernel.org>2013-03-17 15:49:44 -0400
commitb9606e2aa97d3d831d1236c0e789a33a2f867a8a (patch)
treebb08ece65aaa414377cbf917cd561df959f21be1 /drivers/iio
parent066f90512ebfa3c59492f377cbb78c3b7231737c (diff)
iio:core drop info_mask from struct iio_info
This has been replaced by the pair of masks info_mask_separate and info_mask_shared_by_type. Other variants may follow. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/industrialio-core.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index f05289f7b512..e145931ef1b8 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -691,23 +691,6 @@ static int iio_device_add_channel_sysfs(struct iio_dev *indio_dev,
691 691
692 if (chan->channel < 0) 692 if (chan->channel < 0)
693 return 0; 693 return 0;
694 for_each_set_bit(i, &chan->info_mask, sizeof(long)*8) {
695 ret = __iio_add_chan_devattr(iio_chan_info_postfix[i/2],
696 chan,
697 &iio_read_channel_info,
698 &iio_write_channel_info,
699 i/2,
700 !(i%2),
701 &indio_dev->dev,
702 &indio_dev->channel_attr_list);
703 if (ret == -EBUSY && (i%2 == 0)) {
704 ret = 0;
705 continue;
706 }
707 if (ret < 0)
708 goto error_ret;
709 attrcount++;
710 }
711 for_each_set_bit(i, &chan->info_mask_separate, sizeof(long)*8) { 694 for_each_set_bit(i, &chan->info_mask_separate, sizeof(long)*8) {
712 ret = __iio_add_chan_devattr(iio_chan_info_postfix[i], 695 ret = __iio_add_chan_devattr(iio_chan_info_postfix[i],
713 chan, 696 chan,