Re: [PATCH v2 15/41] dm: core: Add a way to count the devices in a uclass

2021-11-24 Thread Simon Glass
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

[PATCH v2 15/41] dm: core: Add a way to count the devices in a uclass

2021-10-23 Thread Simon Glass
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