forked from OERV-BSP/u-boot
dm: core: Allow finding a uclass device by partial name
In some cases two devices are related and the only way to tell is to check that the names partially patch. Add a way to check this without needing to create a new string for the comparison. Fix the comment for device_find_child_by_namelen() while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -799,7 +799,7 @@ int device_find_first_child_by_uclass(const struct udevice *parent,
|
||||
struct udevice **devp);
|
||||
|
||||
/**
|
||||
* device_find_child_by_name() - Find a child by device name
|
||||
* device_find_child_by_namelen() - Find a child by device name
|
||||
*
|
||||
* @parent: Parent device to search
|
||||
* @name: Name to look for
|
||||
|
||||
Reference in New Issue
Block a user