diff options
-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 3d8d187eef2a..096a6bfe0cdf 100644 --- a/drivers/iio/industrialio-buffer.c +++ b/drivers/iio/industrialio-buffer.c | |||
@@ -292,7 +292,7 @@ int iio_buffer_register(struct iio_dev *indio_dev, | |||
292 | if (channels[i].scan_index > | 292 | if (channels[i].scan_index > |
293 | (int)indio_dev->masklength - 1) | 293 | (int)indio_dev->masklength - 1) |
294 | indio_dev->masklength | 294 | indio_dev->masklength |
295 | = indio_dev->channels[i].scan_index + 1; | 295 | = channels[i].scan_index + 1; |
296 | 296 | ||
297 | ret = iio_buffer_add_channel_sysfs(indio_dev, | 297 | ret = iio_buffer_add_channel_sysfs(indio_dev, |
298 | &channels[i]); | 298 | &channels[i]); |