]> Pileus Git - ~andy/linux/commitdiff
iio:gp2ap020a00f: 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:13:57 +0000 (19:13 +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>
Cc: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/gp2ap020a00f.c

index 2a65bc34facec0aa6bea304033b2884583389c14..a530e7712a8e8ed0384c4e77c62b41d24b282b6b 100644 (file)
@@ -1483,7 +1483,6 @@ error_unlock:
 }
 
 static const struct iio_buffer_setup_ops gp2ap020a00f_buffer_setup_ops = {
-       .preenable = &iio_sw_buffer_preenable,
        .postenable = &gp2ap020a00f_buffer_postenable,
        .predisable = &gp2ap020a00f_buffer_predisable,
 };