mirror of
https://github.com/torvalds/linux.git
synced 2024-12-06 11:01:43 +00:00
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>
This commit is contained in:
parent
0ae5fb6fd3
commit
d61a04dc14
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user