From: Jonathan Cameron <jic23@kernel.org>
To: michael.hennerich@analog.com
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio:inkern: Fix typo/bug in convert raw to processed.
Date: Tue, 04 Jun 2013 18:50:32 +0100 [thread overview]
Message-ID: <51AE28E8.2050601@kernel.org> (raw)
In-Reply-To: <1370246656-15546-1-git-send-email-michael.hennerich@analog.com>
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;
>
>
prev parent reply other threads:[~2013-06-04 17:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51AE28E8.2050601@kernel.org \
--to=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=michael.hennerich@analog.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).