* [PATCH] iio:inkern: Fix typo/bug in convert raw to processed.
@ 2013-06-03 8:04 michael.hennerich
2013-06-04 17:50 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: michael.hennerich @ 2013-06-03 8:04 UTC (permalink / raw)
To: jic23, linux-iio; +Cc: Michael Hennerich
From: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
---
drivers/iio/inkern.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c
index 795d100..442d529 100644
--- a/drivers/iio/inkern.c
+++ b/drivers/iio/inkern.c
@@ -450,7 +450,7 @@ static int iio_convert_raw_to_processed_unlocked(struct iio_channel *chan,
s64 raw64 = raw;
int ret;
- ret = iio_channel_read(chan, &offset, NULL, IIO_CHAN_INFO_SCALE);
+ ret = iio_channel_read(chan, &offset, NULL, IIO_CHAN_INFO_OFFSET);
if (ret == 0)
raw64 += offset;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio:inkern: Fix typo/bug in convert raw to processed.
2013-06-03 8:04 [PATCH] iio:inkern: Fix typo/bug in convert raw to processed michael.hennerich
@ 2013-06-04 17:50 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2013-06-04 17:50 UTC (permalink / raw)
To: michael.hennerich; +Cc: linux-iio
On 06/03/2013 09:04 AM, michael.hennerich@analog.com wrote:
> From: Michael Hennerich <michael.hennerich@analog.com>
>
> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
oops. Applied to fixes-togreg branch of iio.git
Thanks,
> ---
> drivers/iio/inkern.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c
> index 795d100..442d529 100644
> --- a/drivers/iio/inkern.c
> +++ b/drivers/iio/inkern.c
> @@ -450,7 +450,7 @@ static int iio_convert_raw_to_processed_unlocked(struct iio_channel *chan,
> s64 raw64 = raw;
> int ret;
>
> - ret = iio_channel_read(chan, &offset, NULL, IIO_CHAN_INFO_SCALE);
> + ret = iio_channel_read(chan, &offset, NULL, IIO_CHAN_INFO_OFFSET);
> if (ret == 0)
> raw64 += offset;
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-04 17:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-03 8:04 [PATCH] iio:inkern: Fix typo/bug in convert raw to processed michael.hennerich
2013-06-04 17:50 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).