Skip to content

Commit 1887e72

Browse files
Sundeep-Bhattajic23
authored andcommitted
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]>
1 parent 0495081 commit 1887e72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/xilinx-xadc-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ static int xadc_parse_dt(struct iio_dev *indio_dev, struct device_node *np,
11261126
chan->address = XADC_REG_VPVN;
11271127
} else {
11281128
chan->scan_index = 15 + reg;
1129-
chan->scan_index = XADC_REG_VAUX(reg - 1);
1129+
chan->address = XADC_REG_VAUX(reg - 1);
11301130
}
11311131
num_channels++;
11321132
chan++;

0 commit comments

Comments
 (0)