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 <liviu.dudau@foss.arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Liviu Dudau
2018-09-28 14:12:55 +01:00
committed by Simon Glass
parent 216460ec12
commit 81f351d6e7
2 changed files with 10 additions and 10 deletions

View File

@@ -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++;
}