Commit c23264ca authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: pm8921-bms: fix hkadc readings



The procedure to calculate the battery voltage from xoadc raw readings
needs to be updated. Currently the driver multiplies the readings by 3
before calibration. This step needs to be done after calibration.

Also update all battery voltage based read_xxxx functions to
return the calibrated value.

Additionally call the hkadc calibration function at probe time
so early readings of battery voltage will be accurate.

Change-Id: I19c4ae8f124f3442ddffd651445db529ceac1cfe
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 05d42746
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment