commit | 026fa9b00c5f04e5000a2b7ed54bf6af179790c2 | [log] [tgz] |
---|---|---|
author | Xiaozhe Shi <xiaozhes@codeaurora.org> | Fri Mar 22 17:00:50 2013 -0700 |
committer | Xiaozhe Shi <xiaozhes@codeaurora.org> | Fri Mar 22 18:22:43 2013 -0700 |
tree | ecd08d07b1ad9350ed0b29032549a103198222ae | |
parent | 262fa4ea119742fbe26e1be0a7a0e3112b01d9d8 [diff] |
power: qpnp-bms: report 100 SoC when battery is gone Currently the BMS reports 0 SoC when battery is removed. However, this can cause userspace to shutdown if the batt_pres irq is incorrectly asserted. Fix this by reporting 100 SoC instead when battery is gone so that userspace does not incorrectly shut down. Change-Id: I20a98088cdc17bb322fae5116141f27ed746ec33 Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>