diff options
author | Gerlando Falauto <gerlando.falauto@keymile.com> | 2011-11-18 10:49:12 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-06 01:48:10 +0400 |
commit | 7813ca9b66509b1d6d8e04d49a10f51e9c9632a4 (patch) | |
tree | d75aea4f1fd01325518c8f21b2485cd5e087c1b4 | |
parent | a6e6f7f4d0cb1925cb00a7833e7abd1d24576e66 (diff) | |
download | u-boot-7813ca9b66509b1d6d8e04d49a10f51e9c9632a4.tar.xz |
serial: constify serial_assign()
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | common/serial.c | 2 | ||||
-rw-r--r-- | include/serial.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/serial.c b/common/serial.c index 03bbb19754..75cc1bb71c 100644 --- a/common/serial.c +++ b/common/serial.c @@ -149,7 +149,7 @@ void serial_stdio_init(void) } } -int serial_assign(char *name) +int serial_assign(const char *name) { struct serial_device *s; diff --git a/include/serial.h b/include/serial.h index 9d623cacb2..fbc10365f1 100644 --- a/include/serial.h +++ b/include/serial.h @@ -93,7 +93,7 @@ extern struct serial_device bfin_serial3_device; extern void serial_register(struct serial_device *); extern void serial_initialize(void); extern void serial_stdio_init(void); -extern int serial_assign(char *name); +extern int serial_assign(const char *name); extern void serial_reinit_all(void); /* For usbtty */ |