]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: core: Support finding a device by phandle
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2015 00:15:38 +0000 (18:15 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:01:00 +0000 (08:01 +0200)
commit2d6c803da23d91866804d22488d0b1cf5c9f0721
tree4db0d48774be47b73fefbba9d0740b7c94ef7e20
parent26056d18f9fdfc4f7013efb42f89b663d889fca6
dm: core: Support finding a device by phandle

It is common for one node to reference another via a phandle. Add support
for obtaining an attached device by this method. As an example, a node may
have a 'power-supply' property which references a regulator, allowing the
driver to turn on its power.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/uclass.c
include/dm/uclass.h