aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-10-14 12:49:00 -0400
committerJonathan Cameron <jic23@kernel.org>2013-10-16 14:13:57 -0400
commit1e61fb7b19df136dc9124b85da9a7bc0ec6cc351 (patch)
treee7558778d4302f458cadb3c277aa42967729809f /drivers/iio
parent6c0743ed99bf3e13b80574629131465a10b12879 (diff)
iio:gp2ap020a00f: Remove redundant call to iio_sw_buffer_preenable()
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/light/gp2ap020a00f.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/light/gp2ap020a00f.c b/drivers/iio/light/gp2ap020a00f.c
index 2a65bc34face..a530e7712a8e 100644
--- a/drivers/iio/light/gp2ap020a00f.c
+++ b/drivers/iio/light/gp2ap020a00f.c
@@ -1483,7 +1483,6 @@ error_unlock:
1483} 1483}
1484 1484
1485static const struct iio_buffer_setup_ops gp2ap020a00f_buffer_setup_ops = { 1485static const struct iio_buffer_setup_ops gp2ap020a00f_buffer_setup_ops = {
1486 .preenable = &iio_sw_buffer_preenable,
1487 .postenable = &gp2ap020a00f_buffer_postenable, 1486 .postenable = &gp2ap020a00f_buffer_postenable,
1488 .predisable = &gp2ap020a00f_buffer_predisable, 1487 .predisable = &gp2ap020a00f_buffer_predisable,
1489}; 1488};