Skip to contentSkip to conversation

patch "iio: adc: xilinx: Fix VREFP scale" added to staging-linus

PATCH [email protected] 1 participant 1 message May 13, 2015

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

iio: adc: xilinx: Fix VREFP scale

to my staging git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-linus branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.

If you have any questions about this process, please let me know.

Quoted 1 line

From 00db4e52f4541965f7fda225eb458a75f892017b Mon Sep 17 00:00:00 2001

From: Thomas Betker <[email protected]>
Date: Wed, 15 Apr 2015 21:11:49 +0200
Subject: 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.

---
 drivers/iio/adc/xilinx-xadc-core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/xilinx-xadc-core.c +1 -0
index 0ad7b502c593..6fa629b3c168 100644
@@ -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:
Signature · 1 line
2.4.0