
29 Nov
2018
29 Nov
'18
6:39 p.m.
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 ---
Changes in v2: None
drivers/core/device.c | 34 ++++++++++++++++++++++++++++++++++ include/dm/device.h | 25 +++++++++++++++++++++++++ test/dm/test-fdt.c | 27 +++++++++++++++++++++++++++ 3 files changed, 86 insertions(+)
Applied to u-boot-dm/master, thanks!