Skip to content
Commit d385376f authored by Anton Vorontsov's avatar Anton Vorontsov
Browse files

apm_power: improve battery finding algorithm



Prior to this patch, if use_for_apm unspecified, apm_power able
to choice batteries according to their charge only.

This patch adds ability to choice batteries according to their charge,
energy, use_for_apm flag, and fallback to any battery if it failed to
decide.

Patch is mandatory to report Apple PMU batteries through legacy
/proc/apm interface using power supply class.

Signed-off-by: default avatarAnton Vorontsov <cbou@mail.ru>
parent cd1ebcc0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment