diff options
| author | Liviu Dudau <[email protected]> | 2018-09-28 14:12:55 +0100 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2018-11-14 09:16:28 -0800 |
| commit | 81f351d6e7ebb371de8ea849fc21dd07dc2eff24 (patch) | |
| tree | 9097708fe12d8e6245018b927de658f62b240c36 /drivers/core/dump.c | |
| parent | 216460ec12cce2a6b7fa83f42a48ed20d448e0dc (diff) | |
uclass: Use uclass_foreach_dev() macro instead of open coding
Use the uclass_foreach_dev() macro instead of the open coded version.
Signed-off-by: Liviu Dudau <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
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 d7cdb1475d7..90680844043 100644 --- a/drivers/core/dump.c +++ b/drivers/core/dump.c @@ -89,7 +89,7 @@ void dm_dump_uclass(void) printf("uclass %d: %s\n", id, uc->uc_drv->name); if (list_empty(&uc->dev_head)) continue; - list_for_each_entry(dev, &uc->dev_head, uclass_node) { + uclass_foreach_dev(dev, uc) { dm_display_line(dev, i); i++; } |
