Patchwork [U-Boot,v1,2/5] serial: constify serial_assign()

login
register
mail settings
Submitter Gerlando Falauto
Date Nov. 18, 2011, 4:49 p.m.
Message ID <1321634955-5561-3-git-send-email-gerlando.falauto@keymile.com>
Download mbox | patch
Permalink /patch/126449/
State Accepted
Commit 7813ca9b66509b1d6d8e04d49a10f51e9c9632a4
Delegated to: Wolfgang Denk
Headers show

Comments

Gerlando Falauto - Nov. 18, 2011, 4:49 p.m.
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
---
 common/serial.c  |    2 +-
 include/serial.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Mike Frysinger - Nov. 18, 2011, 8:03 p.m.
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
Wolfgang Denk - Dec. 5, 2011, 9:48 p.m.
Dear Gerlando Falauto,

In message <1321634955-5561-3-git-send-email-gerlando.falauto@keymile.com> you wrote:
> Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
> ---
>  common/serial.c  |    2 +-
>  include/serial.h |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

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 */