From: Jeremy Fitzhardinge Date: Wed, 7 Dec 2011 17:15:45 +0000 (-0800) Subject: power_supply: allow a power supply to explicitly point to powered device X-Git-Tag: v3.3-rc1~98^2~20^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8351665195cec6d2b73cce8b66f02d6dde246a8e;p=pandora-kernel.git power_supply: allow a power supply to explicitly point to powered device If a power supply has a scope of "Device", then allow the power supply to indicate what device it actually powers. This is represented in the power supply's sysfs directory as a symlink named "powers", which points to the sysfs directory of the powered device. If the device has children, then the sub-devices are also powered by the same power supply. Signed-off-by: Jeremy Fitzhardinge Cc: Richard Hughes --- Reading git-diff-tree failed