aboutsummaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorIvan T. Ivanov <ivan.ivanov@linaro.org>2015-04-17 17:51:08 +0300
committerJonathan Cameron <jic23@kernel.org>2015-04-18 17:40:04 +0100
commit937125aca00e0478c4024afe58bc620a7bbe2a93 (patch)
tree7ceaa11e4a3e80d4e773b9a4a4cdf3cafc5000a9 /include/soc
parentd0716b0ea4ce11a13477163c14b26e180922ba51 (diff)
iio: adc: spmi-vadc: Fix overflow in output value normalization
With 'dx' equal to 0.625V and 15 bit ADC, calculations overflow when difference against GND is ~20% of the ADC range. Fix this. Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org> Cc: <stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/soc')
0 files changed, 0 insertions, 0 deletions