提交 db38b9f9 编写于 作者: L Lars-Peter Clausen 提交者: Jonathan Cameron

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: NLars-Peter Clausen <lars@metafoo.de>
Reviewed-by: NDaniel Baluta <daniel.baluta@intel.com>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 f9380e71
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册