From: Ivan T. Ivanov Date: Fri, 17 Apr 2015 14:51:08 +0000 (+0300) Subject: iio: adc: spmi-vadc: Fix overflow in output value normalization X-Git-Tag: omap-for-v4.2/soc-pt1-take2~6^2^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=937125aca00e0478c4024afe58bc620a7bbe2a93;p=pandora-kernel.git 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 Cc: Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed