board: msm7x27a: Fix the battery capacity calculation logic.
Battery capacity calculation is missing boundary checks. This
is causing capacity to be more than 100%, when battery voltage
goes below minimum operating voltage. This inturn is causing
failure to trigger graceful shutdown at low voltages. Fix is
to have the boundary checks in capacity calculation.
CRs-Fixed: 369687
Change-Id: I25e9a09d4d9d0cb03ee38f589d20e5f807e801c9
Signed-off-by:
Krishna Vanka <kvanka@codeaurora.org>
Loading
Please register or sign in to comment