aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc
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:12:04 -0400
commit41288e0f6215e13eac4f94186379977907850047 (patch)
treed574e2c4a255daea0dae955b63491d1493685cbb /drivers/iio/adc
parent06e1b542bb06a84bb536d9865c6547422cc240b5 (diff)
iio:ad7887: 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> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r--drivers/iio/adc/ad7887.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/iio/adc/ad7887.c b/drivers/iio/adc/ad7887.c
index faedd0e165f6..acb7f90359a3 100644
--- a/drivers/iio/adc/ad7887.c
+++ b/drivers/iio/adc/ad7887.c
@@ -78,11 +78,6 @@ enum ad7887_supported_device_ids {
78static int ad7887_ring_preenable(struct iio_dev *indio_dev) 78static int ad7887_ring_preenable(struct iio_dev *indio_dev)
79{ 79{
80 struct ad7887_state *st = iio_priv(indio_dev); 80 struct ad7887_state *st = iio_priv(indio_dev);
81 int ret;
82
83 ret = iio_sw_buffer_preenable(indio_dev);
84 if (ret < 0)
85 return ret;
86 81
87 /* We know this is a single long so can 'cheat' */ 82 /* We know this is a single long so can 'cheat' */
88 switch (*indio_dev->active_scan_mask) { 83 switch (*indio_dev->active_scan_mask) {