diff options
| author | Simon Glass <[email protected]> | 2022-04-24 23:31:00 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-04-25 10:00:03 -0400 |
| commit | 4e0710a2d007032c8a82ef3af45a0e6e9176a2a7 (patch) | |
| tree | dbfcd2034200743eac28ce5b8ef3dbcd93fc7e95 /include/dm/device.h | |
| parent | 6aa4fe39122a85ce1ef559139518fa5042406186 (diff) | |
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 <[email protected]>
Diffstat (limited to 'include/dm/device.h')
| -rw-r--r-- | include/dm/device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dm/device.h b/include/dm/device.h index e0f86f5df9f..b474888d025 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -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 |
