power: supply: core: Add support for supplied-from device-property
authorHans de Goede <hdegoede@redhat.com>
Mon, 8 May 2017 15:13:54 +0000 (17:13 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 May 2017 13:28:15 +0000 (15:28 +0200)
commit58a36bb06891ee779074db6ef84e98347c634d38
tree35e9461323df91e0c95e500446bc38a1cd559bb8
parenta463182031c122f91ccebc14f743654f12aa9cec
power: supply: core: Add support for supplied-from device-property

On devicetree using platforms the devicetree can provide info on which
power-supplies supply another power-supply through phandles.

This commit adds support for providing this info on non devicetree
platforms through the platform code setting a supplied-from
device-property on the power-supplies parent device.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/power_supply_core.c