|
@@ -87,15 +87,10 @@ static int ade7758_ring_preenable(struct iio_dev *indio_dev)
|
|
{
|
|
{
|
|
struct ade7758_state *st = iio_priv(indio_dev);
|
|
struct ade7758_state *st = iio_priv(indio_dev);
|
|
unsigned channel;
|
|
unsigned channel;
|
|
- int ret;
|
|
|
|
|
|
|
|
if (!bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength))
|
|
if (!bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- ret = iio_sw_buffer_preenable(indio_dev);
|
|
|
|
- if (ret < 0)
|
|
|
|
- return ret;
|
|
|
|
-
|
|
|
|
channel = find_first_bit(indio_dev->active_scan_mask,
|
|
channel = find_first_bit(indio_dev->active_scan_mask,
|
|
indio_dev->masklength);
|
|
indio_dev->masklength);
|
|
|
|
|