* [PATCH] iio:common: added disable function after read info raw data
@ 2013-05-09 13:35 Denis CIOCCA
2013-05-11 14:22 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Denis CIOCCA @ 2013-05-09 13:35 UTC (permalink / raw)
To: jic23; +Cc: linux-iio, denis.ciocca, Denis Ciocca
Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
---
drivers/iio/common/st_sensors/st_sensors_core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iio/common/st_sensors/st_sensors_core.c b/drivers/iio/common/st_sensors/st_sensors_core.c
index bd33473..ed9bc8a 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);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio:common: added disable function after read info raw data
2013-05-09 13:35 [PATCH] iio:common: added disable function after read info raw data Denis CIOCCA
@ 2013-05-11 14:22 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2013-05-11 14:22 UTC (permalink / raw)
To: Denis CIOCCA; +Cc: linux-iio, denis.ciocca
On 05/09/2013 02:35 PM, Denis CIOCCA wrote:
> Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Applied to fixes-togreg branch of iio.git
> ---
> drivers/iio/common/st_sensors/st_sensors_core.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/iio/common/st_sensors/st_sensors_core.c b/drivers/iio/common/st_sensors/st_sensors_core.c
> index bd33473..ed9bc8a 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);
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-11 14:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 13:35 [PATCH] iio:common: added disable function after read info raw data Denis CIOCCA
2013-05-11 14:22 ` Jonathan Cameron
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.