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

Skip to content
Commit 53478aac authored by David Keitel's avatar David Keitel
Browse files

of_batterydata: add of_batterydata_get_best_profile API



This function simply queries POWER_SUPPLY_PROP_RESISTANCE_ID
from via the power supply framework for a given power supply.

It will find the closest matching profile contained within
batterydata_container_node which is matched via the
qcom,batt-id-kohm property.

Change-Id: I15a34b784cc23809df4db2deb583bd6c40bd182b
Signed-off-by: default avatarDavid Keitel <dkeitel@codeaurora.org>
parent 6b76f916
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