commit | 97ffae1d30c3f6ceee67d5b0d3e540c08c13c744 | [log] [tgz] |
---|---|---|
author | Thomas Betker <thomas.betker@rohde-schwarz.com> | Wed Apr 15 21:11:50 2015 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Apr 19 13:49:54 2015 +0100 |
tree | 43e5f8d6be608c740b89a2a7c4745e22059231c5 | |
parent | 00db4e52f4541965f7fda225eb458a75f892017b [diff] |
iio: adc: xilinx: Fix VREFN sign 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>