summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/serial.c2
-rw-r--r--include/serial.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/serial.c b/common/serial.c
index 03bbb19..75cc1bb 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 9d623ca..fbc1036 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 */