diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2013-06-03 09:04:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-13 10:49:44 -0700 |
commit | 10d3af905f9d3b0a93c70adc83c3dcf66690e6bb (patch) | |
tree | e5f1f071a9be30dcf3cbcfaae389407220776be1 /drivers | |
parent | 5435bb9911ca86e32a991b79e294472b82b37f0c (diff) |
iio:inkern: Fix typo/bug in convert raw to processed.
commit 6c5d4c96f979611f0165dc825af9e1cea8dd35b9 upstream.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iio/inkern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c index b289915b846..8ff1a2de1d9 100644 --- a/drivers/iio/inkern.c +++ b/drivers/iio/inkern.c @@ -279,7 +279,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; |