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

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

of_batterydata: add qcom,batt-id-range-pct support



The optional qcom,batt-id-range-pct property will
be used to determine a valid range for a given qcom,batt-id-kohm.

This option puts a boundary on the closest match found by
of_batterydata_get_best_profile.

The advantage of this is to prevent loading battery profiles
based on battery ID resistance values which are too far off from
qcom,batt-id-kohm and thus leading to undesirable configuration
for battery related properties.

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