diff options
author | Sean Anderson <seanga2@gmail.com> | 2022-03-30 12:26:40 -0400 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-06-28 03:09:51 +0100 |
commit | 501a9a7ed803ac948adb392e541f9da9bafad60e (patch) | |
tree | ba8d53d511cc84bebb3aa93ade42d8af350237cd /drivers/core/dump.c | |
parent | 8b52f237f0f8ae63c930fa8459c39ab87367bad1 (diff) |
dm: core: Use device_foreach_child where possible
We have some nice macros for iterating over devices in device.h, but they
are not used by the driver core. Convert all the users I could find.
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Diffstat (limited to 'drivers/core/dump.c')
-rw-r--r-- | drivers/core/dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/dump.c b/drivers/core/dump.c index f2f9cacc56c..fe97dca954d 100644 --- a/drivers/core/dump.c +++ b/drivers/core/dump.c @@ -39,7 +39,7 @@ static void show_devices(struct udevice *dev, int depth, int last_flag) printf("%s\n", dev->name); - list_for_each_entry(child, &dev->child_head, sibling_node) { + device_foreach_child(child, dev) { is_last = list_is_last(&child->sibling_node, &dev->child_head); show_devices(child, depth + 1, (last_flag << 1) | is_last); } |