Skip to content

Commit

Permalink
iio:common:st: added disable function after read info raw data
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Denis CIOCCA authored and Jonathan Cameron committed May 22, 2013
1 parent 0ae5fb6 commit d61a04d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/iio/common/st_sensors/st_sensors_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d61a04d

Please sign in to comment.