iio: adc: xilinx: Fix VREFN scale
authorThomas Betker <thomas.betker@rohde-schwarz.com>
Wed, 11 Nov 2015 20:24:38 +0000 (21:24 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 15 Nov 2015 12:36:20 +0000 (12:36 +0000)
commita57f8dac46fbac5ab0e31aef1a98b3f6eb30c079
treed78c9478d5c90f3198b14fdd01894346a3e278e8
parent0d2f6fd3ffd5e7a447233a57112246bc00064752
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>
drivers/iio/adc/xilinx-xadc-core.c