commit | fa77f1aa63c00b34efca7f4a817585463d407901 | [log] [tgz] |
---|---|---|
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Mon Jun 27 21:11:51 2011 -0700 |
committer | Bryan Huntsman <bryanh@codeaurora.org> | Mon Oct 03 09:59:09 2011 -0700 |
tree | 28ecf7a4642a075502a7210be2dfabc079bfad8e | |
parent | 91f4270c269cc1d5510a21182ef5d6d73ec9b975 [diff] |
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: Abhijeet Dharmapurikar <adharmap@codeaurora.org>