]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Allow finding children / uclasses by partial name
authorSimon Glass <sjg@chromium.org>
Sat, 23 Oct 2021 23:26:08 +0000 (17:26 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 28 Nov 2021 23:51:51 +0000 (16:51 -0700)
commit4b030177b6608bc6f2508e023089112e8adb2f4b
treeaa80d60404bb5c60c8ebfea451f57120c3a76bf6
parent075bfc9575aedca15e61f5f1cfa300409e2979fe
dm: core: Allow finding children / uclasses by partial name

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@chromium.org>
drivers/core/device.c
drivers/core/uclass.c
include/dm/device.h
include/dm/uclass.h