commit | 286d5160a7b1a5e08c2aeb2075c429f7b8252be9 | [log] [tgz] |
---|---|---|
author | Subbaraman Narayanamurthy <subbaram@codeaurora.org> | Fri Oct 27 20:02:54 2017 -0700 |
committer | Subbaraman Narayanamurthy <subbaram@codeaurora.org> | Mon Oct 30 15:05:26 2017 -0700 |
tree | 3268c87fee490acd1ab16a20ed975b1a7935de8e | |
parent | ebac0555e36da8df9350cc905c382c925672b3de [diff] |
power: qpnp-fg-gen3: Fine tune the monotonic SOC calculation Currently, all the values of raw monotonic SOC (0-255) gets rounded off to 0-100. This can show up monotonic SOC hitting 0% earlier when the SOC hadn't really hit zero yet. Improve the SOC round off calculation so that 0 and 100 % can be shown when it reaches the exact point. Change-Id: I5bd9ebc8667a5beed9e1e97ff492aa1350f4d0f7 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>