]> Pileus Git - ~andy/linux/commitdiff
staging:iio:ade7758: Remove redundant call to iio_sw_buffer_preenable()
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 14 Oct 2013 16:49:00 +0000 (17:49 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 16 Oct 2013 18:16:15 +0000 (19:16 +0100)
The equivalent of iio_sw_buffer_preenable() is now done in the IIO buffer core,
so there is no need to do this from the driver anymore.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/meter/ade7758_ring.c

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