diff options
author | Thomas Betker <thomas.betker@rohde-schwarz.com> | 2015-11-11 21:24:38 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-11-15 13:36:20 +0100 |
commit | a57f8dac46fbac5ab0e31aef1a98b3f6eb30c079 (patch) | |
tree | d78c9478d5c90f3198b14fdd01894346a3e278e8 | |
parent | iio: si7020: Swap data byte order (diff) | |
download | linux-a57f8dac46fbac5ab0e31aef1a98b3f6eb30c079.tar.xz linux-a57f8dac46fbac5ab0e31aef1a98b3f6eb30c079.zip |
iio: adc: xilinx: Fix VREFN scale
The scaling factor for VREFN is 3.0/4096 (not 1.0/4096), just as for
VREFP. This is not immediately obvious from the specification (Xilinx
UG480), but has been confirmed by Xilinx support.
Suggested-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/adc/xilinx-xadc-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c index ce93bd8e3f68..95c0b3d9890c 100644 --- a/drivers/iio/adc/xilinx-xadc-core.c +++ b/drivers/iio/adc/xilinx-xadc-core.c @@ -857,6 +857,7 @@ static int xadc_read_raw(struct iio_dev *indio_dev, case XADC_REG_VCCINT: case XADC_REG_VCCAUX: case XADC_REG_VREFP: + case XADC_REG_VREFN: case XADC_REG_VCCBRAM: case XADC_REG_VCCPINT: case XADC_REG_VCCPAUX: |