summaryrefslogtreecommitdiff
path: root/drivers/power/power_supply_core.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2011-12-07 23:24:20 +0400
committerJeremy Fitzhardinge <jeremy@goop.org>2011-12-09 21:42:05 +0400
commit25a0bc2dfc2ea732f40af2dae52426ead66ae76e (patch)
tree180dc7e4122da2f40b241c5e936a0668420f4bb7 /drivers/power/power_supply_core.c
parentcfcfc9eca2bcbd26a8e206baeb005b055dbf8e37 (diff)
downloadlinux-25a0bc2dfc2ea732f40af2dae52426ead66ae76e.tar.xz
power_supply: add SCOPE attribute to power supplies
This adds a "scope" attribute to a power_supply, which indicates how much of the system it powers. It appears in sysfs as "scope" or in the uevent file as POWER_SUPPLY_SCOPE=. There are presently three possible values: Unknown - unknown power topology System - the power supply powers the whole system Device - it powers a specific device, or tree of devices A power supply which doesn't have a "scope" attribute should be assumed to have "System" scope. In general, usermode should assume that loss of all System-scoped power supplies will power off the whole system, but any single one is sufficient to power the system. Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Richard Hughes <richard@hughsie.com>
Diffstat (limited to 'drivers/power/power_supply_core.c')
0 files changed, 0 insertions, 0 deletions