diff options
Diffstat (limited to 'drivers/iio/industrialio-buffer.c')
-rw-r--r-- | drivers/iio/industrialio-buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c index 2952ee038477..0472ee268271 100644 --- a/drivers/iio/industrialio-buffer.c +++ b/drivers/iio/industrialio-buffer.c | |||
@@ -963,7 +963,7 @@ static int iio_buffer_update_demux(struct iio_dev *indio_dev, | |||
963 | 963 | ||
964 | /* Now we have the two masks, work from least sig and build up sizes */ | 964 | /* Now we have the two masks, work from least sig and build up sizes */ |
965 | for_each_set_bit(out_ind, | 965 | for_each_set_bit(out_ind, |
966 | indio_dev->active_scan_mask, | 966 | buffer->scan_mask, |
967 | indio_dev->masklength) { | 967 | indio_dev->masklength) { |
968 | in_ind = find_next_bit(indio_dev->active_scan_mask, | 968 | in_ind = find_next_bit(indio_dev->active_scan_mask, |
969 | indio_dev->masklength, | 969 | indio_dev->masklength, |