From: Matthew Garrett Date: Tue, 26 Aug 2008 20:09:59 +0000 (+0100) Subject: power_supply: Add function to return system-wide power state X-Git-Tag: v2.6.28-rc1~93^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=942ed161944b3476639916cf544e6975b29c985a;p=pandora-kernel.git power_supply: Add function to return system-wide power state Certain drivers benefit from knowing whether the system is on ac or battery, for instance when determining which backlight registers to read. This adds a simple call to determine whether there's an online power supply other than any batteries. Signed-off-by: Matthew Garrett Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed