projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eb3a81
)
iio:inkern: Fix typo/bug in convert raw to processed.
author
Michael Hennerich
<michael.hennerich@analog.com>
Mon, 3 Jun 2013 08:04:00 +0000
(09:04 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Tue, 4 Jun 2013 17:46:45 +0000
(18:46 +0100)
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/inkern.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/inkern.c
b/drivers/iio/inkern.c
index dca4eed7b034dcb9965cf13153e2a8939e3433e9..98ddc323add011fe84e45abc4f8902ce9e7f09af 100644
(file)
--- 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;