diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-10-14 12:49:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-10-16 14:12:46 -0400 |
commit | d4b2911b1ff4bece34fd662b9e056ac97c36b193 (patch) | |
tree | 319d0c2b72d664190414fc185c56332ae77fbaf9 /drivers/iio | |
parent | 24adaf7958847e0950b197ac05cced2ea9e0b4e7 (diff) |
iio:st_gyro: 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: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/gyro/st_gyro_buffer.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/iio/gyro/st_gyro_buffer.c b/drivers/iio/gyro/st_gyro_buffer.c index 69017c7ec302..d67b17b6a7aa 100644 --- a/drivers/iio/gyro/st_gyro_buffer.c +++ b/drivers/iio/gyro/st_gyro_buffer.c | |||
@@ -32,16 +32,7 @@ int st_gyro_trig_set_state(struct iio_trigger *trig, bool state) | |||
32 | 32 | ||
33 | static int st_gyro_buffer_preenable(struct iio_dev *indio_dev) | 33 | static int st_gyro_buffer_preenable(struct iio_dev *indio_dev) |
34 | { | 34 | { |
35 | int err; | 35 | return st_sensors_set_enable(indio_dev, true); |
36 | |||
37 | err = st_sensors_set_enable(indio_dev, true); | ||
38 | if (err < 0) | ||
39 | goto st_gyro_set_enable_error; | ||
40 | |||
41 | err = iio_sw_buffer_preenable(indio_dev); | ||
42 | |||
43 | st_gyro_set_enable_error: | ||
44 | return err; | ||
45 | } | 36 | } |
46 | 37 | ||
47 | static int st_gyro_buffer_postenable(struct iio_dev *indio_dev) | 38 | static int st_gyro_buffer_postenable(struct iio_dev *indio_dev) |