commit | 4c78f46809346cf13f79d623a6647417adf4bca0 | [log] [tgz] |
---|---|---|
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Tue Oct 16 15:43:55 2012 -0700 |
committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Thu Oct 25 15:14:49 2012 -0700 |
tree | d8cb27bad6378217157f0f6d518fb352f302d5ad | |
parent | 8a8ce398b6a3a941c645af59bce74def5d8942c9 [diff] |
power: pm8921-bms: expose coulomb counter based charge Average current drawn can be calculated by reading the coulomb counter based charge before and after the usecase is run and dividing the difference in the charge by the time it took to run the usecase. Use power supply property POWER_SUPPLY_PROP_CHARGE_NOW, to expose the coulomb counter based charge. Change-Id: I43e26a2932ab3e3d9d79bb5af7daf2364ca133b7 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>