u-boot/drivers/core
Rasmus Villemoes 6ebb357a6a 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>
2023-04-28 11:48:09 -06:00
..
acpi.c common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
device-remove.c dm: core: Use device_foreach_child where possible 2022-06-28 03:09:51 +01:00
device.c timer: Tidy up use of notrace 2023-02-11 12:22:34 -05:00
devres.c dm: core: Use device_foreach_child where possible 2022-06-28 03:09:51 +01:00
dump.c dm: core: Use full printf() format when possible 2023-01-26 10:47:45 -07:00
fdtaddr.c dm: core: Reduce code size with dev_of_offset() 2022-09-29 16:11:14 -04:00
Kconfig dm: Add a TPL symbol for simple-bus 2023-03-03 09:49:02 -05:00
lists.c dm: core: Fix iteration over driver_info records 2022-12-02 08:39:00 -05:00
Makefile vpl: Add Kconfig options for VPL 2022-05-02 09:58:13 -04:00
of_access.c dm: core: Make aliases_lookup static 2023-04-28 11:30:17 -06:00
of_addr.c drivers/core/of_addr.c: Fix spelling of "shouldn't". 2022-01-13 07:57:50 -05:00
of_extra.c net: introduce a helper to determine whether to use in-band autoneg 2021-11-23 09:57:55 +02:00
ofnode.c dm: treewide: Complete migration to new driver model schema 2023-02-14 09:43:27 -07:00
read.c drivers: core: ofnode: Add panel timing decode. 2023-02-04 18:13:21 +01:00
read_extra.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
regmap.c dm: regmap: Disable range checks in SPL 2022-10-17 21:17:12 -06:00
root.c dm: fix probing of all devices that have u-boot, dm-pre-reloc in SPL/TPL 2023-01-12 14:06:16 -05:00
simple-bus.c treewide: Use OF_REAL instead of !OF_PLATDATA 2021-09-25 09:46:15 -06:00
simple-pm-bus.c simple-pm-bus: Use -ENOSYS for checking missing system call 2021-04-06 16:33:19 +12:00
syscon-uclass.c treewide: Use OF_REAL instead of !OF_PLATDATA 2021-09-25 09:46:15 -06:00
tag.c dm: core: Add a command to show driver model statistics 2022-06-28 03:09:52 +01:00
uclass.c uclass: add uclass_find_device_by_phandle_id() helper 2023-04-28 11:48:09 -06:00
util.c treewide: Use OF_REAL instead of !OF_PLATDATA 2021-09-25 09:46:15 -06:00