diff options
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/industrialio-buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c index 403b72878b0b..71333140d42c 100644 --- a/drivers/iio/industrialio-buffer.c +++ b/drivers/iio/industrialio-buffer.c | |||
@@ -639,6 +639,8 @@ static int __iio_update_buffers(struct iio_dev *indio_dev, | |||
639 | indio_dev->currentmode = INDIO_BUFFER_TRIGGERED; | 639 | indio_dev->currentmode = INDIO_BUFFER_TRIGGERED; |
640 | } else if (indio_dev->modes & INDIO_BUFFER_HARDWARE) { | 640 | } else if (indio_dev->modes & INDIO_BUFFER_HARDWARE) { |
641 | indio_dev->currentmode = INDIO_BUFFER_HARDWARE; | 641 | indio_dev->currentmode = INDIO_BUFFER_HARDWARE; |
642 | } else if (indio_dev->modes & INDIO_BUFFER_SOFTWARE) { | ||
643 | indio_dev->currentmode = INDIO_BUFFER_SOFTWARE; | ||
642 | } else { /* Should never be reached */ | 644 | } else { /* Should never be reached */ |
643 | ret = -EINVAL; | 645 | ret = -EINVAL; |
644 | goto error_run_postdisable; | 646 | goto error_run_postdisable; |