1
0
Fork 0

staging:iio:ad5933: 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>
hifive-unleashed-5.1
Lars-Peter Clausen 2014-11-26 18:55:07 +01:00 committed by Jonathan Cameron
parent f9380e7123
commit db38b9f9dd
1 changed files with 0 additions and 4 deletions

View File

@ -757,10 +757,6 @@ static int ad5933_probe(struct i2c_client *client,
if (ret)
goto error_unreg_ring;
/* enable both REAL and IMAG channels by default */
iio_scan_mask_set(indio_dev, indio_dev->buffer, 0);
iio_scan_mask_set(indio_dev, indio_dev->buffer, 1);
ret = ad5933_setup(st);
if (ret)
goto error_uninitialize_ring;