diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2023-04-13 17:16:11 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-04-28 11:48:09 -0600 |
commit | 6ebb357a6a16fe4b61fae3866f80b967e8231f7e (patch) | |
tree | 0e3176b7d2230b5d7dd6ccaa93a64a0cdf96ea59 /lib/efi_loader/helloworld.c | |
parent | 763f0a1f0d2b3ee0b3f7248dee874c3e65e93345 (diff) |
uclass: add uclass_find_device_by_phandle_id() helper
The functions uclass_find_device_by_phandle() and
uclass_get_device_by_phandle_id() both loop over a given uclass
looking for a device with a given phandle. Factor that out to a common
helper.
For now, there are no (known potential) users of the new helper
outside uclass.c, so make it static.
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
Fix warning on sandbox_spl; fix code style:
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/efi_loader/helloworld.c')
0 files changed, 0 insertions, 0 deletions