iio: adc: xilinx: Fix VREFN sign
authorThomas Betker <thomas.betker@rohde-schwarz.com>
Wed, 15 Apr 2015 19:11:50 +0000 (21:11 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Apr 2015 12:49:54 +0000 (13:49 +0100)
The VREFN channel is bipolar, not unipolar. Small negative values do
occur (e.g., -1mV), and unsigned conversion maps them incorrectly to
large positive values (about +1V), so fix this.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

No differences found