power: qpnp-smbcharger: cleanup deglich api
The deglitch time is set at many places. Create a single api to
set this.
Also, use the hvdcp status api in the deglitch workaround checker
function instead of reading the register again. This fixes a bug
where the code could end up potentially reading an incorrect register/bit
for hvdcp status.
CRs-Fixed: 948903
Change-Id: I26f72960288e2b7af73a3d807cce966ccd3d68f4
Signed-off-by:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Loading
Please register or sign in to comment