forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HACK: power: supply: pm8916_bms_vm: Add a basic voltage based SOC filter
Unfortunately, VM-BMS provides literally nothing but the voltage to guess the state of charge (SOC). Add some crude guesstimation algorithm for now so the devices don't just turn off because userspace is unable to detect the remaining battery capacity. Signed-off-by: Nikita Travkin <[email protected]>
- Loading branch information
1 parent
a9a2b19
commit 881d0b7
Showing
1 changed file
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters