power_supply: Add function to return system-wide power state
authorMatthew Garrett <mjg59@srcf.ucam.org>
Tue, 26 Aug 2008 20:09:59 +0000 (21:09 +0100)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Sun, 31 Aug 2008 22:42:54 +0000 (02:42 +0400)
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 <mjg@redhat.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>

No differences found