dm: core: Support finding a device by phandle
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2015 00:15:38 +0000 (18:15 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Aug 2015 02:57:51 +0000 (20:57 -0600)
commitd82ba4c0b457f0cb30da7bbee935aad7793e5fac
treea540d1e498aac23968cd3d0856846ec327a07782
parent389f1856bd0882471214c2ac94da2b415362c10f
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