power_supply: Add power_supply_get_by_phandle
authorSebastian Reichel <sre@debian.org>
Sun, 24 Nov 2013 16:49:29 +0000 (17:49 +0100)
committerAnton Vorontsov <anton@enomsg.org>
Tue, 24 Dec 2013 02:21:11 +0000 (18:21 -0800)
commitabce97708a9b5ba897ad94fa289804d8af8d3ea9
tree130cb8a31d312f755b0f26303218b377863c3b7c
parent32260308b4cafcd71b1c0aac35675dc68120c33d
power_supply: Add power_supply_get_by_phandle

Add method to get power supply by device tree phandle.

Signed-off-by: Sebastian Reichel <sre@debian.org>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/power_supply_core.c
include/linux/power_supply.h