1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

devices: merge to list_head

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD
2008-08-31 04:24:55 +02:00
parent ef0255fc75
commit c1de7a6daf
9 changed files with 87 additions and 907 deletions

View File

@@ -31,14 +31,17 @@
extern void _do_coninfo (void);
int do_coninfo (cmd_tbl_t * cmd, int flag, int argc, char *argv[])
{
int i, l;
int l;
struct list_head *list = device_get_list();
struct list_head *pos;
device_t *dev;
/* Scan for valid output and input devices */
puts ("List of available devices:\n");
for (i = 1; i <= ListNumItems (devlist); i++) {
device_t *dev = ListGetPtrToItem (devlist, i);
list_for_each(pos, list) {
dev = list_entry(pos, device_t, list);
printf ("%-8s %08x %c%c%c ",
dev->name,