
24 Nov
2021
24 Nov
'21
11:22 p.m.
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 ---
(no changes since v1)
drivers/core/uclass.c | 12 ++++++++++++ include/dm/uclass.h | 8 ++++++++ 2 files changed, 20 insertions(+)
Applied to u-boot-dm/next, thanks!