]> git.baikalelectronics.ru Git - uboot.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)
commitb6b8f3502f2c3993337afc644b268b82477b27ac
tree071caf2042aaadff4ebe4fb698a2aba4ba4d3b76
parent3c9035150abfb66816501663281cd05d30ed0cf5
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