Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1887e724 authored by Subbaraya Sundeep Bhatta's avatar Subbaraya Sundeep Bhatta Committed by Jonathan Cameron
Browse files

iio: adc: xilinx-xadc: assign auxiliary channels address correctly



This patch fixes incorrect logic for assigning address
to auxiliary channels of xilinx xadc.

Signed-off-by: default avatarSubbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Cc: Stable@vger.kernel.org
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 04950811
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1126,7 +1126,7 @@ static int xadc_parse_dt(struct iio_dev *indio_dev, struct device_node *np,
				chan->address = XADC_REG_VPVN;
			} else {
				chan->scan_index = 15 + reg;
				chan->scan_index = XADC_REG_VAUX(reg - 1);
				chan->address = XADC_REG_VAUX(reg - 1);
			}
			num_channels++;
			chan++;