Skip to content
Commit 942ed161 authored by Matthew Garrett's avatar Matthew Garrett Committed by Anton Vorontsov
Browse files

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: default avatarMatthew Garrett <mjg@redhat.com>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent e82374fd
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