staging:iio:ad5933: Don't enable channels by default
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 26 Nov 2014 17:55:07 +0000 (18:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 12 Dec 2014 12:28:28 +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/impedance-analyzer/ad5933.c

index b6bd609c3655f9e0f78e778a6acc018ed1cfc4c0..aa6a368506cd41e4fe0220a2e1cf10b36b075bc7 100644 (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;