diff options
author | Ivan T. Ivanov <ivan.ivanov@linaro.org> | 2015-04-17 16:51:08 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-04-18 18:40:04 +0200 |
commit | 937125aca00e0478c4024afe58bc620a7bbe2a93 (patch) | |
tree | 7ceaa11e4a3e80d4e773b9a4a4cdf3cafc5000a9 /init/do_mounts_md.c | |
parent | iio/axp288_adc: add missing channel info mask (diff) | |
download | linux-937125aca00e0478c4024afe58bc620a7bbe2a93.tar.xz linux-937125aca00e0478c4024afe58bc620a7bbe2a93.zip |
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 'init/do_mounts_md.c')
0 files changed, 0 insertions, 0 deletions