diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-11-26 18:55:08 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-12-12 12:28:29 +0000 |
commit | 00d52334857c36fe52f8fc15a6fe3f0644fb73bc (patch) | |
tree | 491cb274b0f42ccce73f546dae1ae5f2b829425d /drivers | |
parent | db38b9f9dddb10772329de6a26b416f6e3f7be41 (diff) | |
download | blackbird-obmc-linux-00d52334857c36fe52f8fc15a6fe3f0644fb73bc.tar.gz blackbird-obmc-linux-00d52334857c36fe52f8fc15a6fe3f0644fb73bc.zip |
staging:iio:sca3000: Don't enable channels by default
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/accel/sca3000_core.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/iio/accel/sca3000_core.c b/drivers/staging/iio/accel/sca3000_core.c index e4e56391487a..cd46a616043b 100644 --- a/drivers/staging/iio/accel/sca3000_core.c +++ b/drivers/staging/iio/accel/sca3000_core.c @@ -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, |