On Tue, 30 Jul 2024 at 05:12, Sughosh Ganu <sughosh.g...@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.g...@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 <s...@chromium.org>