提交 1887e724 编写于 作者: S Subbaraya Sundeep Bhatta 提交者: Jonathan Cameron

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: NSubbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Acked-by: NLars-Peter Clausen <lars@metafoo.de>
Cc: Stable@vger.kernel.org
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 04950811
...@@ -1126,7 +1126,7 @@ static int xadc_parse_dt(struct iio_dev *indio_dev, struct device_node *np, ...@@ -1126,7 +1126,7 @@ static int xadc_parse_dt(struct iio_dev *indio_dev, struct device_node *np,
chan->address = XADC_REG_VPVN; chan->address = XADC_REG_VPVN;
} else { } else {
chan->scan_index = 15 + reg; chan->scan_index = 15 + reg;
chan->scan_index = XADC_REG_VAUX(reg - 1); chan->address = XADC_REG_VAUX(reg - 1);
} }
num_channels++; num_channels++;
chan++; chan++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册