projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81f5172
)
iio: health/afe440x: Fix scan_index assignment
author
Andrew F. Davis
<afd@ti.com>
Sun, 1 May 2016 20:36:55 +0000
(15:36 -0500)
committer
Jonathan Cameron
<jic23@kernel.org>
Wed, 4 May 2016 10:03:01 +0000
(11:03 +0100)
The LED channels are not scannable and so scan_index should
be negative, fix this here.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/health/afe440x.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/health/afe440x.h
b/drivers/iio/health/afe440x.h
index 544bbabd6321ad89ddce5cb3c118968646ab134a..583d071af11d6a5b9d84d2e17d1ca02fcb5d594c 100644
(file)
--- a/
drivers/iio/health/afe440x.h
+++ b/
drivers/iio/health/afe440x.h
@@
-125,7
+125,7
@@
struct afe440x_reg_info {
.type = IIO_CURRENT, \
.channel = _index, \
.address = _index, \
- .scan_index =
_index,
\
+ .scan_index =
-1,
\
.extend_name = _name, \
.info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \
BIT(IIO_CHAN_INFO_SCALE), \