dm: core: Add a few more specific child-finding functions
authorSimon Glass <sjg@chromium.org>
Sun, 18 Nov 2018 15:14:31 +0000 (08:14 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Nov 2018 16:30:05 +0000 (09:30 -0700)
commit3abe1115355900172a8681f5e6fa01ca71a9b916
tree9c2aeebe14de6b7c227845d8b2df0372bc81cd8f
parentd0b4f68d199c075f5d734cf184f7eaf1a642083d
dm: core: Add a few more specific child-finding functions

Add two functions which can find a child device by uclass or by name.
The first is useful with Multi-Function-Devices (MFDs) to find one of a
particular type. The second is useful when only the name is known.

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