projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4e4ab8
)
iio: adjd_s311: Fix non-scan mode data read
author
Peter Meerwald
<pmeerw@pmeerw.net>
Sun, 18 Aug 2013 12:59:00 +0000
(13:59 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 19 Aug 2013 18:30:21 +0000
(19:30 +0100)
forgot to convert channel index to data register
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/adjd_s311.c
patch
|
blob
|
history
diff --git
a/drivers/iio/light/adjd_s311.c
b/drivers/iio/light/adjd_s311.c
index 5f4749e60b0428ae6fb3ffb1be7b4de00913b699..c1cd5698b8aea471802f471626e0b3865b2ca058 100644
(file)
--- a/
drivers/iio/light/adjd_s311.c
+++ b/
drivers/iio/light/adjd_s311.c
@@
-232,7
+232,8
@@
static int adjd_s311_read_raw(struct iio_dev *indio_dev,
switch (mask) {
case IIO_CHAN_INFO_RAW:
- ret = adjd_s311_read_data(indio_dev, chan->address, val);
+ ret = adjd_s311_read_data(indio_dev,
+ ADJD_S311_DATA_REG(chan->address), val);
if (ret < 0)
return ret;
return IIO_VAL_INT;