summaryrefslogtreecommitdiff
path: root/lib/flex_array.c
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-10-27 20:02:54 -0700
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-10-27 20:02:54 -0700
commit9445c8845856acdb71eb2fe180dfab00ac91a783 (patch)
tree5a04fab2ab3192e7a0961b2e7ddd981bcd45f0c6 /lib/flex_array.c
parent31c9729a258a6495a344e2ec692e43fab9a0db87 (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>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions