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

Commit 00db4e52 authored by Thomas Betker's avatar Thomas Betker Committed by Jonathan Cameron
Browse files

iio: adc: xilinx: Fix VREFP scale



The scaling factor for VREFP is 3.0/4096, not 1.0/4096; fix this to get
correct readings.

Signed-off-by: default avatarThomas Betker <thomas.betker@rohde-schwarz.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent d6c96c42
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -856,6 +856,7 @@ static int xadc_read_raw(struct iio_dev *indio_dev,
			switch (chan->address) {
			case XADC_REG_VCCINT:
			case XADC_REG_VCCAUX:
			case XADC_REG_VREFP:
			case XADC_REG_VCCBRAM:
			case XADC_REG_VCCPINT:
			case XADC_REG_VCCPAUX: