]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Rename and fix uclass_get_by_name_len()
authorSimon Glass <sjg@chromium.org>
Mon, 25 Apr 2022 05:30:59 +0000 (23:30 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 25 Apr 2022 14:00:03 +0000 (10:00 -0400)
commitd85fa5451e2b53da2b4b67d2bb1823e5a5bd2a4d
treeeaf85bd156690a2fd2ab9a77e92ce31c53f2b35a
parentd69dd7e7ba944ff4e47ef77c41ee667a4c31979c
dm: core: Rename and fix uclass_get_by_name_len()

It seems that namelen is more common in U-Boot. Rename this function to
fit in better. Also fix a bug where it breaks the operation of
uclass_get_by_name() and add a test.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reported-by: Tim Harvey <tharvey@gateworks.com>
drivers/core/uclass.c
include/dm/uclass.h
test/dm/core.c