diff options
| author | Tom Rini <[email protected]> | 2020-05-05 14:53:51 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-05-05 14:53:51 -0400 |
| commit | 1259567ae3cd4c84acb9db6ab1fadcdcd26968a9 (patch) | |
| tree | d240af5bf76d4bb4a3c959a417151e11d9003098 /include/dm/ofnode.h | |
| parent | 9a3cc7b6d416fddfa6058b731fe5c9055dba6918 (diff) | |
| parent | c01a7773a5e71322d3458f20560344ff475cd26c (diff) | |
Merge git://git.denx.de/u-boot-usb
- MediaTek USB host support
Diffstat (limited to 'include/dm/ofnode.h')
| -rw-r--r-- | include/dm/ofnode.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 618fc10390e..a0d3df77868 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -880,6 +880,14 @@ ofnode ofnode_by_prop_value(ofnode from, const char *propname, node = ofnode_next_subnode(node)) /** + * ofnode_get_child_count() - get the child count of a ofnode + * + * @node: valid node to get its child count + * @return the number of subnodes + */ +int ofnode_get_child_count(ofnode parent); + +/** * ofnode_translate_address() - Translate a device-tree address * * Translate an address from the device-tree into a CPU physical address. This |
