From: Jeremy Fitzhardinge Date: Wed, 7 Dec 2011 19:24:20 +0000 (-0800) Subject: power_supply: add SCOPE attribute to power supplies X-Git-Tag: v3.3-rc1~98^2~20^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25a0bc2dfc2ea732f40af2dae52426ead66ae76e;p=pandora-kernel.git 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 Cc: Richard Hughes --- Reading git-diff-tree failed