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

Skip to content
Commit 39753420 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Stephen Boyd
Browse files

power: pm8921-bms: use configurable poll times



The current code calculates the state of charge every 20 seconds.
We need to increase the frequency when the voltage drops to near
cutoff values.

Make the poll interval configurable, choose 1 second interval when
the battery nears the cutoff voltage and 20 seconds otherwise.

Change-Id: I1bc779e5890f6994442c562ee5abf37c06dc6d3d
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 7656ea12
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