commit | e50091e5bc29a4b13999cd206008d8b54fc370ae | [log] [tgz] |
---|---|---|
author | David Keitel <dkeitel@codeaurora.org> | Wed Mar 05 09:55:57 2014 -0800 |
committer | Anirudh Ghayal <aghayal@codeaurora.org> | Mon Mar 10 18:07:49 2014 +0530 |
tree | 59e0ac3ff32759c4b74440969ecfa865bbd9881a | |
parent | 270f90d8e38984dade522900bed0fdbb509b4ec3 [diff] |
power: qpnp-bms: clamp for SOC <= 0 In some scenarios a negative soc may be calculated even though VBAT is above the cutoff voltage. The clamping function does not take negative SOC values into account and fails to clamp the SOC. Fix this by checking for SOC values <= 0. CRs-Fixed: 623091 Change-Id: I8d64b3c8717e8088be71d84d66225512b85e87e3 Signed-off-by: David Keitel <dkeitel@codeaurora.org>