[PATCH] dm: core: Use device_foreach_child where possible
Simon Glass
sjg at chromium.org
Tue Jun 28 15:38:17 CEST 2022
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 at gmail.com>
---
drivers/core/device-remove.c | 4 ++--
drivers/core/device.c | 21 ++++++++++-----------
drivers/core/devres.c | 2 +-
drivers/core/dump.c | 2 +-
4 files changed, 14 insertions(+), 15 deletions(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list