]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: use list_count_nodes() for counting list nodes
authorSughosh Ganu <sughosh.ganu@linaro.org>
Tue, 30 Jul 2024 11:11:32 +0000 (16:41 +0530)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 31 Jul 2024 07:54:53 +0000 (09:54 +0200)
commit939afc80b6b5de23d70789f3cb3a391dd31319b1
treefd6bf04ca23dc979e4ec580d569c95f77dd68b01
parente464ad085e522d09fadd825c2a1246450ff3188c
dm: use list_count_nodes() for counting list nodes

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>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/core/util.c
include/dm/util.h
test/dm/bus.c
test/dm/core.c
test/dm/test-fdt.c