diff options
author | Sughosh Ganu <sughosh.ganu@linaro.org> | 2024-07-30 16:41:32 +0530 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-07-31 09:54:53 +0200 |
commit | 939afc80b6b5de23d70789f3cb3a391dd31319b1 (patch) | |
tree | fd6bf04ca23dc979e4ec580d569c95f77dd68b01 /include | |
parent | e464ad085e522d09fadd825c2a1246450ff3188c (diff) | |
download | u-boot-939afc80b6b5de23d70789f3cb3a391dd31319b1.tar.gz u-boot-939afc80b6b5de23d70789f3cb3a391dd31319b1.tar.bz2 u-boot-939afc80b6b5de23d70789f3cb3a391dd31319b1.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/dm/util.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/dm/util.h b/include/dm/util.h index 95c3527a37..ec518c51d9 100644 --- a/include/dm/util.h +++ b/include/dm/util.h @@ -17,14 +17,6 @@ struct dm_stats; struct list_head; /** - * list_count_items() - Count number of items in a list - * - * @param head: Head of list - * Return: number of items, or 0 if empty - */ -int list_count_items(struct list_head *head); - -/** * Dump out a tree of all devices starting @uclass * * @dev_name: udevice name |