Commit 9d3d9a57 authored by Andrew F. Davis's avatar Andrew F. Davis Committed by Jonathan Cameron

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: default avatarAndrew F. Davis <afd@ti.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 81f51727
...@@ -125,7 +125,7 @@ struct afe440x_reg_info { ...@@ -125,7 +125,7 @@ struct afe440x_reg_info {
.type = IIO_CURRENT, \ .type = IIO_CURRENT, \
.channel = _index, \ .channel = _index, \
.address = _index, \ .address = _index, \
.scan_index = _index, \ .scan_index = -1, \
.extend_name = _name, \ .extend_name = _name, \
.info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \ .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \
BIT(IIO_CHAN_INFO_SCALE), \ BIT(IIO_CHAN_INFO_SCALE), \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment