From: Andrew F. Davis Date: Sun, 1 May 2016 20:36:55 +0000 (-0500) Subject: iio: health/afe440x: Fix scan_index assignment X-Git-Tag: v4.8-rc1~193^2~234^2~50 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9d3d9a57e4242b155b965f58639a230b212a0ea5;p=karo-tx-linux.git 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 Signed-off-by: Jonathan Cameron --- 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), \