iio: adc: xilinx: Fix VREFP scale
authorThomas Betker <thomas.betker@rohde-schwarz.com>
Wed, 15 Apr 2015 19:11:49 +0000 (21:11 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 9 Jun 2015 18:31:41 +0000 (14:31 -0400)
commit3ec936bcf36f91348c08366ebd15d3241298d64f
tree0f3dcec07dfb2725873a0b4e177075753798ad32
parentec4fc281dab476d0e87cb8f82b966ef95d2f1a9a
iio: adc: xilinx: Fix VREFP scale

[ Upstream commit 00db4e52f4541965f7fda225eb458a75f892017b ]

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

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/iio/adc/xilinx-xadc-core.c