]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Allow finding a uclass device by partial name
authorSimon Glass <sjg@chromium.org>
Mon, 25 Apr 2022 05:31:00 +0000 (23:31 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 25 Apr 2022 14:00:03 +0000 (10:00 -0400)
commit269b2d8057306ec05c3a2375174b032e16be8f2b
treedbfcd2034200743eac28ce5b8ef3dbcd93fc7e95
parentd85fa5451e2b53da2b4b67d2bb1823e5a5bd2a4d
dm: core: Allow finding a uclass device by partial name

In some cases two devices are related and the only way to tell is to
check that the names partially patch. Add a way to check this without
needing to create a new string for the comparison.

Fix the comment for device_find_child_by_namelen() while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/uclass.c
include/dm/device.h
include/dm/uclass-internal.h
test/dm/core.c