mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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: Subbaraya Sundeep Bhatta <[email protected]> Acked-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
parent
0495081179
commit
1887e724e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue