commit | 6012c1e7c2013c29271a9efc4ed71d9d2057b556 | [log] [tgz] |
---|---|---|
author | Sughosh Ganu <sughosh.ganu@linaro.org> | Tue Jul 30 16:41:32 2024 +0530 |
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Wed Jul 31 09:54:53 2024 +0200 |
tree | fd6bf04ca23dc979e4ec580d569c95f77dd68b01 | |
parent | 21ad4cc0fdd5ddb9b0d0e6cad356be4fe8f00301 [diff] |
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>