]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Add a way to count the devices in a uclass
authorSimon Glass <sjg@chromium.org>
Sat, 23 Oct 2021 23:26:09 +0000 (17:26 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 28 Nov 2021 23:51:51 +0000 (16:51 -0700)
commit29fe555dec4c18096ab1ddd51398317160359ba1
tree071caf2042aaadff4ebe4fb698a2aba4ba4d3b76
parent4b030177b6608bc6f2508e023089112e8adb2f4b
dm: core: Add a way to count the devices in a uclass

Add a function that returns the number of devices in a uclass. This can be
helpful in sizing an array that needs to hold a list of them.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/uclass.c
include/dm/uclass.h