mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
dm: core: Add a function to count the children of a device
Add a function to count the available children of a device. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
@@ -404,6 +404,15 @@ const char *dev_get_uclass_name(const struct udevice *dev);
|
||||
*/
|
||||
int device_get_child(struct udevice *parent, int index, struct udevice **devp);
|
||||
|
||||
/**
|
||||
* device_get_child_count() - Get the available child count of a device
|
||||
*
|
||||
* Returns the number of children to a device.
|
||||
*
|
||||
* @parent: Parent device to check
|
||||
*/
|
||||
int device_get_child_count(struct udevice *parent);
|
||||
|
||||
/**
|
||||
* device_find_child_by_seq() - Find a child device based on a sequence
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user