aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorWolfgang Denk2008-01-09 17:55:14 -0600
committerWolfgang Denk2008-01-09 17:55:14 -0600
commitd3a6532cbe263d992f49e86ac95bede28e96f9c8 (patch)
tree687561d091203e912658d34422fb969eb7ab3744 /api
parent694976afa5dcc5c4e7eaeaa0612eac35cd5bd8ec (diff)
downloadu-boot-d3a6532cbe263d992f49e86ac95bede28e96f9c8.tar.gz
u-boot-d3a6532cbe263d992f49e86ac95bede28e96f9c8.tar.xz
u-boot-d3a6532cbe263d992f49e86ac95bede28e96f9c8.zip
Coding Style cleanup; update CHANGELOG
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'api')
-rw-r--r--api/README2
-rw-r--r--api/api.c12
-rw-r--r--api/api_net.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/api/README b/api/README
index c8f9c457c4..6df225f584 100644
--- a/api/README
+++ b/api/README
@@ -22,7 +22,7 @@ U-Boot machine/arch independent API for external apps
22 - the U-Boot integral part of the API is meant to be thin and non-intrusive, 22 - the U-Boot integral part of the API is meant to be thin and non-intrusive,
23 leaving as much processing as possible on the consumer application side, 23 leaving as much processing as possible on the consumer application side,
24 for example it doesn't keep states, but relies on hints from the app and 24 for example it doesn't keep states, but relies on hints from the app and
25 so on 25 so on
26 26
27 - optional (CONFIG_API) 27 - optional (CONFIG_API)
28 28
diff --git a/api/api.c b/api/api.c
index 10f83eb691..0598d9082d 100644
--- a/api/api.c
+++ b/api/api.c
@@ -231,7 +231,7 @@ static int API_dev_enum(va_list ap)
231 /* start over - clean up enumeration */ 231 /* start over - clean up enumeration */
232 dev_enum_reset(); /* XXX shouldn't the name contain 'stor'? */ 232 dev_enum_reset(); /* XXX shouldn't the name contain 'stor'? */
233 debugf("RESTART ENUM\n"); 233 debugf("RESTART ENUM\n");
234 234
235 /* net device enumeration first */ 235 /* net device enumeration first */
236 if (dev_enum_net(di)) 236 if (dev_enum_net(di))
237 return 0; 237 return 0;
@@ -365,7 +365,7 @@ static int API_dev_write(va_list ap)
365 return API_EINVAL; 365 return API_EINVAL;
366 366
367 if (di->type & DEV_TYP_STOR) 367 if (di->type & DEV_TYP_STOR)
368 /* 368 /*
369 * write to storage is currently not supported by U-Boot: 369 * write to storage is currently not supported by U-Boot:
370 * no storage device implements block_write() method 370 * no storage device implements block_write() method
371 */ 371 */
@@ -523,7 +523,7 @@ static int API_env_enum(va_list ap)
523 char *last, **next; 523 char *last, **next;
524 524
525 last = (char *)va_arg(ap, u_int32_t); 525 last = (char *)va_arg(ap, u_int32_t);
526 526
527 if ((next = (char **)va_arg(ap, u_int32_t)) == NULL) 527 if ((next = (char **)va_arg(ap, u_int32_t)) == NULL)
528 return API_EINVAL; 528 return API_EINVAL;
529 529
@@ -540,7 +540,7 @@ static int API_env_enum(va_list ap)
540 return 0; 540 return 0;
541 } 541 }
542 } 542 }
543 543
544 if (envmatch((uchar *)last, i) < 0) 544 if (envmatch((uchar *)last, i) < 0)
545 continue; 545 continue;
546 546
@@ -567,7 +567,7 @@ static cfp_t calls_table[API_MAXCALL] = { NULL, };
567 * serviced until finished. 567 * serviced until finished.
568 * 568 *
569 * e.g. syscall(1, int *, u_int32_t, u_int32_t, u_int32_t, u_int32_t); 569 * e.g. syscall(1, int *, u_int32_t, u_int32_t, u_int32_t, u_int32_t);
570 * 570 *
571 * call: syscall number 571 * call: syscall number
572 * 572 *
573 * retval: points to the return value placeholder, this is the place the 573 * retval: points to the return value placeholder, this is the place the
@@ -655,7 +655,7 @@ void platform_set_mr(struct sys_info *si, unsigned long start, unsigned long siz
655 655
656 if (!si->mr || !size || (flags == 0)) 656 if (!si->mr || !size || (flags == 0))
657 return; 657 return;
658 658
659 /* find free slot */ 659 /* find free slot */
660 for (i = 0; i < si->mr_no; i++) 660 for (i = 0; i < si->mr_no; i++)
661 if (si->mr[i].flags == 0) { 661 if (si->mr[i].flags == 0) {
diff --git a/api/api_net.c b/api/api_net.c
index 9b20a1740c..9611ab0dda 100644
--- a/api/api_net.c
+++ b/api/api_net.c
@@ -75,7 +75,7 @@ int dev_close_net(void *cookie)
75 return 0; 75 return 0;
76} 76}
77 77
78/* 78/*
79 * There can only be one active eth interface at a time - use what is 79 * There can only be one active eth interface at a time - use what is
80 * currently set to eth_current 80 * currently set to eth_current
81 */ 81 */