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
---
(no changes since v1)
drivers/core/uclass.c | 12
include/dm/uclass.h | 8
2 files changed, 20 insert
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
---
(no changes since v1)
drivers/core/uclass.c | 12
include/dm/uclass.h | 8
2 files changed, 20 insert
2 matches
Mail list logo