u-boot/drivers/core
Michal Suchanek e44d7e73fe dm: core: Switch uclass_*_device_err to use uclass_*_device_check
The _err variant iterators use the simple iterators without suffix as
basis.

However, there is no user that uclass_next_device_err for iteration,
many users of uclass_first_device_err use it to get the first and
(assumed) only device of an uclass, and a couple that use
uclass_next_device_err to get the device following a known device in the
uclass list.

While there are some truly singleton device classes in which more than
one device cannot exist these are quite rare, and most classes can have
multiple devices even if it is not the case on the SoC's EVB.

In a later patch the simple iterators will be updated to not stop on
error and return next device instead. With this in many cases the code
that expects the first device or an error if it fails to probe may get
the next device instead. Use the _check iterators as the basis of _err
iterators to preserve the old behavior.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-10-17 21:17:12 -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 dm: core: Support accessing core tags 2022-06-28 03:09:52 +01:00
devres.c dm: core: Use device_foreach_child where possible 2022-06-28 03:09:51 +01:00
dump.c dm: core: Add a command to show driver model statistics 2022-06-28 03:09:52 +01:00
fdtaddr.c dm: core: Reduce code size with dev_of_offset() 2022-09-29 16:11:14 -04:00
Kconfig dm: core: Add definitions for multiple ofnode trees 2022-09-29 22:43:43 -04:00
lists.c dm: fix logic of lists_bind_fdt() 2022-07-26 02:30:56 -06:00
Makefile vpl: Add Kconfig options for VPL 2022-05-02 09:58:13 -04:00
of_access.c dm: core: Expand integer-reading tests 2022-09-29 22:43:42 -04: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: core: Support copying properties with ofnode 2022-09-29 22:43:43 -04:00
read.c dm: core: Rename ofnode_get_property_by_prop() 2022-09-29 16:11:14 -04: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: core: Add a way to collect memory usage 2022-06-28 03:09:52 +01: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 dm: core: Switch uclass_*_device_err to use uclass_*_device_check 2022-10-17 21:17:12 -06:00
util.c treewide: Use OF_REAL instead of !OF_PLATDATA 2021-09-25 09:46:15 -06:00