commit | 4ff213ca1c904c3ecd38082bfe8bf53e63399561 | [log] [tgz] |
---|---|---|
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Wed Jul 11 21:28:29 2012 -0700 |
committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Mon Aug 13 19:04:23 2012 -0700 |
tree | 67f389d1284d7b87f59aaea5c2f2f628a4d9a670 | |
parent | 0711c52ed4ef2f032b178a1e8a1b017425c76506 [diff] |
power: pm8921-bms: fix rounding down state of charge The code is rounding down state of charge value in the final step of the calculation. Instead use a division that returns the closest integer. Change-Id: Ia47d1c4eb684dd4c31e454dc762add0feab66b75 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>