diff options
| author | Mike Frysinger <[email protected]> | 2010-10-20 07:18:03 -0400 |
|---|---|---|
| committer | Wolfgang Denk <[email protected]> | 2010-12-09 10:24:09 +0100 |
| commit | 32ff4b7fe410bdea29ca38ab15f57e731fc920d1 (patch) | |
| tree | 98c674e5beaa58074359208a393449307b4a54eb /common | |
| parent | 543f0a3819a9af130f3f80a660099fad8d2d4b8e (diff) | |
stdio: constify "name" arg in public api
Signed-off-by: Mike Frysinger <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/console.c | 4 | ||||
| -rw-r--r-- | common/stdio.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common/console.c b/common/console.c index 7e018863bd3..8c650e05e1c 100644 --- a/common/console.c +++ b/common/console.c @@ -479,7 +479,7 @@ inline void dbg(const char *fmt, ...) /** U-Boot INIT FUNCTIONS *************************************************/ -struct stdio_dev *search_device(int flags, char *name) +struct stdio_dev *search_device(int flags, const char *name) { struct stdio_dev *dev; @@ -491,7 +491,7 @@ struct stdio_dev *search_device(int flags, char *name) return NULL; } -int console_assign(int file, char *devname) +int console_assign(int file, const char *devname) { int flag; struct stdio_dev *dev; diff --git a/common/stdio.c b/common/stdio.c index ab7c5abde1b..b20772c45d7 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -105,7 +105,7 @@ struct list_head* stdio_get_list(void) return &(devs.list); } -struct stdio_dev* stdio_get_by_name(char* name) +struct stdio_dev* stdio_get_by_name(const char *name) { struct list_head *pos; struct stdio_dev *dev; @@ -155,7 +155,7 @@ int stdio_register (struct stdio_dev * dev) * returns 0 if success, -1 if device is assigned and 1 if devname not found */ #ifdef CONFIG_SYS_STDIO_DEREGISTER -int stdio_deregister(char *devname) +int stdio_deregister(const char *devname) { int l; struct list_head *pos; |
