
30 Jul
2024
30 Jul
'24
9:44 p.m.
On Tue, 30 Jul 2024 at 05:12, Sughosh Ganu sughosh.ganu@linaro.org wrote:
The linux kernel has the list_count_nodes() API functions which is used for counting nodes of a list. This has now been imported in U-Boot as part of an earlier commit. Use this function and drop the list_count_items().
Signed-off-by: Sughosh Ganu sughosh.ganu@linaro.org
drivers/core/util.c | 14 ++------------ include/dm/util.h | 8 -------- test/dm/bus.c | 5 +++-- test/dm/core.c | 9 +++++---- test/dm/test-fdt.c | 5 +++-- 5 files changed, 13 insertions(+), 28 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org