summaryrefslogtreecommitdiffstats
path: root/init/do_mounts_md.c
diff options
context:
space:
mode:
authorIvan T. Ivanov <ivan.ivanov@linaro.org>2015-04-17 16:51:08 +0200
committerJonathan Cameron <jic23@kernel.org>2015-04-18 18:40:04 +0200
commit937125aca00e0478c4024afe58bc620a7bbe2a93 (patch)
tree7ceaa11e4a3e80d4e773b9a4a4cdf3cafc5000a9 /init/do_mounts_md.c
parentiio/axp288_adc: add missing channel info mask (diff)
downloadlinux-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