summaryrefslogtreecommitdiffstats
path: root/drivers/iio/health
diff options
context:
space:
mode:
authorAndrew F. Davis2016-05-01 22:36:55 +0200
committerJonathan Cameron2016-05-04 12:03:01 +0200
commit9d3d9a57e4242b155b965f58639a230b212a0ea5 (patch)
treee2773737866262f54ed54623834ab4b70bae5dcf /drivers/iio/health
parentiio: health/afe440x: Always use separate gain values (diff)
downloadkernel-qcow2-linux-9d3d9a57e4242b155b965f58639a230b212a0ea5.tar.gz
kernel-qcow2-linux-9d3d9a57e4242b155b965f58639a230b212a0ea5.tar.xz
kernel-qcow2-linux-9d3d9a57e4242b155b965f58639a230b212a0ea5.zip
iio: health/afe440x: Fix scan_index assignment
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>
Diffstat (limited to 'drivers/iio/health')
-rw-r--r--drivers/iio/health/afe440x.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/health/afe440x.h b/drivers/iio/health/afe440x.h
index 544bbabd6321..583d071af11d 100644
--- 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), \