Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a1ff245f authored by Anirudh Ghayal's avatar Anirudh Ghayal Committed by Stephen Boyd
Browse files

power: qpnp-bms: Clear fcc_count if battery removal is detected



The last_fcc_update_count tracks the updated location of the
FCC data array. Reset this variable if battery removal is
detected.

While at it, avoid FCC updates from userspace after the intial
set of FCC data tuple. Such a condition can occur if userspace
reboots/restarts.

Change-Id: I7a0eb70f73241874dab6b4c6b39795d18509f0cd
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 045a2989
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment