diff options
author | Siddartha Mohanadoss <smohanad@codeaurora.org> | 2016-09-30 16:45:28 -0700 |
---|---|---|
committer | Siddartha Mohanadoss <smohanad@codeaurora.org> | 2016-09-30 16:45:28 -0700 |
commit | 03a962620b069e4571e94a267ea43cb93db27e1b (patch) | |
tree | b8ff857b8c65885f9ed49eb85e9ca167fccf0d6b /drivers/vfio | |
parent | 69bf7545352dee91b2a26dea848afcede2d4eb46 (diff) |
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: Siddartha Mohanadoss <smohanad@codeaurora.org>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions