]> Pileus Git - ~andy/linux/commitdiff
staging:iio:adis16260: Don't set default scan mask
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 17 Jul 2013 14:44:00 +0000 (15:44 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:41:20 +0000 (18:41 +0100)
The recomentation for IIO driver is to leave all scan elements off by default
and let userspace decide which channels need to be enabled.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/gyro/adis16260_core.c

index 5cec675101ffe33e4f37e5528834fe1eab128498..e42a581f27dbf3265624ce23f90aa9717735f504 100644 (file)
@@ -325,20 +325,6 @@ static int adis16260_probe(struct spi_device *spi)
        if (ret)
                goto error_free_dev;
 
-       if (indio_dev->buffer) {
-               /* Set default scan mode */
-               iio_scan_mask_set(indio_dev, indio_dev->buffer,
-                                 ADIS16260_SCAN_SUPPLY);
-               iio_scan_mask_set(indio_dev, indio_dev->buffer,
-                                 ADIS16260_SCAN_GYRO);
-               iio_scan_mask_set(indio_dev, indio_dev->buffer,
-                                 ADIS16260_SCAN_AUX_ADC);
-               iio_scan_mask_set(indio_dev, indio_dev->buffer,
-                                 ADIS16260_SCAN_TEMP);
-               iio_scan_mask_set(indio_dev, indio_dev->buffer,
-                                 ADIS16260_SCAN_ANGL);
-       }
-
        /* Get the device into a sane initial state */
        ret = adis_initial_startup(adis);
        if (ret)