hwmon: qpnp-adc-voltage: Avoid adc code check with recalibration
In VADC driver with recalibration parameter enabled and
MPP2 or MPP4 current sink configuration some ratiometric
channels report the adc code higher than maximum permitted
value.
VADC driver checks the adc code against the permitted
maximum value and overwrites adc code to permitted maximum
value if it is higher and this results into incorrect adc
readings.
Fix this problem by avoiding the adc code check when
recalibration parameter enabled.
Change-Id: Ic1bcc8b4e52cddc013cf1654c229c22fd348159e
Signed-off-by:
Dipen Parmar <dipenp@codeaurora.org>
Loading
Please register or sign in to comment