commit | 29fe555dec4c18096ab1ddd51398317160359ba1 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Oct 23 17:26:09 2021 -0600 |
committer | Simon Glass <sjg@chromium.org> | Sun Nov 28 16:51:51 2021 -0700 |
tree | 071caf2042aaadff4ebe4fb698a2aba4ba4d3b76 | |
parent | 4b030177b6608bc6f2508e023089112e8adb2f4b [diff] |
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>