Commit fa77f1aa authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Bryan Huntsman
Browse files

power: pm8921-bms: adjust the coulomb counter as per revision



The value of LSB for coulomb counter readings are different for pmic
revisions 2.0 onwards. Adjust the coulomb counter readings for them.

While at it, replace macros with functions to avail of type checking
the compiler provides.

Also since the calculate_cc_mvh() actually returns the cc value
in milli amp hour, rename that function to calculate_cc_mah()

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