[U-Boot] [PATCH v2 06/10] dm: core: Add a few more specific child-finding functions

sjg at google.com sjg at google.com
Thu Nov 29 17:39:23 UTC 2018


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 at 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!


More information about the U-Boot mailing list