Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03a96262 authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

hwmon: qpnp-adc-common: Clamp voltage value



On VADC_HC peripheral the ADC code can extend beyond
0-0x4000 range if the input is below 0V or if the
offset and gain error needs to be calibrated out.
Clamp the values for cases where the code represents
the value below 0V.

Change-Id: I2ede3d86d812fbdf757395d92e08e70636e9965a
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 69bf7545
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment