diff options
author | Denis CIOCCA <denis.ciocca@st.com> | 2013-05-09 14:35:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-05-22 22:14:58 +0100 |
commit | d61a04dc148db1d0e7fa2307eb0f7abbc44fcd98 (patch) | |
tree | 5a7c89575223d91febd29284024a6cdd9a39351b /drivers/iio/common | |
parent | 0ae5fb6fd346cf368639fb6256db6af0831b0048 (diff) | |
download | linux-stable-d61a04dc148db1d0e7fa2307eb0f7abbc44fcd98.tar.gz linux-stable-d61a04dc148db1d0e7fa2307eb0f7abbc44fcd98.tar.bz2 linux-stable-d61a04dc148db1d0e7fa2307eb0f7abbc44fcd98.zip |
iio:common:st: added disable function after read info raw data
Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/common')
-rw-r--r-- | drivers/iio/common/st_sensors/st_sensors_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/common/st_sensors/st_sensors_core.c b/drivers/iio/common/st_sensors/st_sensors_core.c index bd33473f8e38..ed9bc8ae9330 100644 --- a/drivers/iio/common/st_sensors/st_sensors_core.c +++ b/drivers/iio/common/st_sensors/st_sensors_core.c @@ -312,6 +312,8 @@ int st_sensors_read_info_raw(struct iio_dev *indio_dev, goto read_error; *val = *val >> ch->scan_type.shift; + + err = st_sensors_set_enable(indio_dev, false); } mutex_unlock(&indio_dev->mlock); |