[PATCH 5/5] dm: use list_count_nodes() for counting list nodes

Simon Glass sjg at chromium.org
Tue Jul 30 21:44:37 CEST 2024


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


More information about the U-Boot mailing list