staging:iio:sca3000: Don't enable channels by default
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 26 Nov 2014 17:55:08 +0000 (18:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 12 Dec 2014 12:28:29 +0000 (12:28 +0000)
The convention for IIO devices is that all channels are disabled by default.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/accel/sca3000_core.c

index e4e56391487aade7f42d0b172f489b6995ddedd8..cd46a616043b2f7db6f77be08a53635496de4fac 100644 (file)
@@ -1159,11 +1159,6 @@ static int sca3000_probe(struct spi_device *spi)
                                  ARRAY_SIZE(sca3000_channels));
        if (ret < 0)
                goto error_unregister_dev;
-       if (indio_dev->buffer) {
-               iio_scan_mask_set(indio_dev, indio_dev->buffer, 0);
-               iio_scan_mask_set(indio_dev, indio_dev->buffer, 1);
-               iio_scan_mask_set(indio_dev, indio_dev->buffer, 2);
-       }
 
        if (spi->irq) {
                ret = request_threaded_irq(spi->irq,