]> git.sur5r.net Git - u-boot/commit
dm: regulator: add function device_get_supply_regulator()
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Tue, 27 Oct 2015 12:07:59 +0000 (13:07 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 2 Nov 2015 01:38:00 +0000 (10:38 +0900)
commit7c816e24a4e980e2717e5c83090dec73bc4eac57
tree74c43945c673449ce4a91adb1d4a596202aa8036
parent35d460fbc8ced954fe23812e706d3eebc1dd2b4d
dm: regulator: add function device_get_supply_regulator()

Some devices are supplied by configurable regulator's output.
But there was no function for getting it. This commit adds
function, that allows for getting the supply device by it's phandle.

The returned regulator device can be used with regulator uclass's API.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/power/regulator/regulator-uclass.c
include/power/regulator.h