mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
IOMUX: Split out for_each_console_dev() helper macro
It is not only less lines of code, but also better readability when new macro is being in use. Introduce for_each_console_dev() helper macro and convert current users to it. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
committed by
Tom Rini
parent
b672c1619b
commit
400797cad3
@@ -15,10 +15,8 @@ void iomux_printdevs(const int console)
|
||||
int i;
|
||||
struct stdio_dev *dev;
|
||||
|
||||
for (i = 0; i < cd_count[console]; i++) {
|
||||
dev = console_devices[console][i];
|
||||
for_each_console_dev(i, console, dev)
|
||||
printf("%s ", dev->name);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user