summaryrefslogtreecommitdiffstats
path: root/drivers/power/power_supply_sysfs.c
diff options
context:
space:
mode:
authorMatthew Garrett <mjg59@srcf.ucam.org>2008-08-26 22:09:59 +0200
committerAnton Vorontsov <cbouatmailru@gmail.com>2008-09-01 00:42:54 +0200
commit942ed161944b3476639916cf544e6975b29c985a (patch)
treea05e3bd0d6b59de318f3bfc5557502c13dde1bc4 /drivers/power/power_supply_sysfs.c
parentpda_power: Check and handle return value of set_irq_wake (diff)
downloadlinux-942ed161944b3476639916cf544e6975b29c985a.tar.xz
linux-942ed161944b3476639916cf544e6975b29c985a.zip
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 <mjg@redhat.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power/power_supply_sysfs.c')
0 files changed, 0 insertions, 0 deletions