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

Commit 2e3f83ee authored by Rama Krishna Phani A's avatar Rama Krishna Phani A Committed by Gerrit - the friendly Code Review server
Browse files

hwmon: qpnp-adc-voltage: Update calibration logic for VADC



Clients will call adc_tm api to set thresholds for continuous monitoring
of VADC channels. VADC calibration happens at the time of first VADC
read. There is a chance that clients can call adc_tm to set thresholds
even before calibration is done. In that case thresholds are set to
zero which is not expected. Update logic such that calibration happens
either through first VADC read or while clients setting thresholds.

Change-Id: I25c8635c7ec0e140a495e4197b80e3179f60061b
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
parent 241c08df
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