]> git.baikalelectronics.ru Git - uboot.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)
commit3c9035150abfb66816501663281cd05d30ed0cf5
treeaa80d60404bb5c60c8ebfea451f57120c3a76bf6
parentf8acba3a5f0fee78df0e989f0eda06110f9e0623
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