iio: adc: xilinx: Fix VREFP scale
authorThomas Betker <thomas.betker@rohde-schwarz.com>
Wed, 15 Apr 2015 19:11:49 +0000 (21:11 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Apr 2015 12:49:44 +0000 (13:49 +0100)
commit00db4e52f4541965f7fda225eb458a75f892017b
treebcb718c73ba855c1f014c0bb5b53e4756f51fdb4
parentd6c96c42283601e311a7a1a3d7e51cde9d7fdb6e
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: Thomas Betker <thomas.betker@rohde-schwarz.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/xilinx-xadc-core.c