staging:iio:simple-dummy: 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:15:40 +0000 (19:15 +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/iio_simple_dummy_buffer.c

index 2612e87fbcb43735b202cabbdeff99d4683bca7a..46c134b2a5d101a4a257b1948b4af8ee90911ace 100644 (file)
@@ -98,14 +98,6 @@ done:
 }
 
 static const struct iio_buffer_setup_ops iio_simple_dummy_buffer_setup_ops = {
-       /*
-        * iio_sw_buffer_preenable:
-        * Generic function for equal sized ring elements + 64 bit timestamp
-        * Assumes that any combination of channels can be enabled.
-        * Typically replaced to implement restrictions on what combinations
-        * can be captured (hardware scan modes).
-        */
-       .preenable = &iio_sw_buffer_preenable,
        /*
         * iio_triggered_buffer_postenable:
         * Generic function that simply attaches the pollfunc to the trigger.