[PATCH v2 14/41] dm: core: Allow finding children / uclasses by partial name

Simon Glass sjg at chromium.org
Wed Nov 24 23:22:27 CET 2021


In some cases it is useful to search just by a partial name, such as
when looking for a sibling device that has a common name substring. Add
helper functions to handle these requirements.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 drivers/core/device.c | 13 ++++++++++---
 drivers/core/uclass.c |  9 +++++++--
 include/dm/device.h   | 12 ++++++++++++
 include/dm/uclass.h   |  9 +++++++++
 4 files changed, 38 insertions(+), 5 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list