From: Anton Vorontsov Date: Thu, 4 Oct 2007 21:05:00 +0000 (+0400) Subject: apm_power: improve battery finding algorithm X-Git-Tag: v2.6.24-rc1~65^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d385376f0d75fdbeed8041ed6baf5cb4a1578ffb;p=pandora-kernel.git 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: Anton Vorontsov --- Reading git-diff-tree failed