summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-10-20 07:18:03 -0400
committerWolfgang Denk <wd@denx.de>2010-11-28 21:58:48 +0100
commitd7be3056def73c0ab53b3907f9a70a73253a5ae9 (patch)
treec2ad918fbe2d5b4fb676e8eee77d6b8927b87d0c /include
parent5a442c0addc69d0c4b58e98e5aec1cf07576debb (diff)
downloadtalos-obmc-uboot-d7be3056def73c0ab53b3907f9a70a73253a5ae9.tar.gz
talos-obmc-uboot-d7be3056def73c0ab53b3907f9a70a73253a5ae9.zip
stdio: constify "name" arg in public api
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include')
-rw-r--r--include/common.h2
-rw-r--r--include/iomux.h2
-rw-r--r--include/stdio_dev.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/include/common.h b/include/common.h
index 189ad8122b..0d1c8724a9 100644
--- a/include/common.h
+++ b/include/common.h
@@ -655,7 +655,7 @@ char * strmhz(char *buf, long hz);
/* common/console.c */
int console_init_f(void); /* Before relocation; uses the serial stuff */
int console_init_r(void); /* After relocation; uses the console stuff */
-int console_assign (int file, char *devname); /* Assign the console */
+int console_assign(int file, const char *devname); /* Assign the console */
int ctrlc (void);
int had_ctrlc (void); /* have we had a Control-C since last clear? */
void clear_ctrlc (void); /* clear the Control-C condition */
diff --git a/include/iomux.h b/include/iomux.h
index e38a81e775..fcf0f9319e 100644
--- a/include/iomux.h
+++ b/include/iomux.h
@@ -43,6 +43,6 @@ extern int cd_count[MAX_FILES];
int iomux_doenv(const int, const char *);
void iomux_printdevs(const int);
-struct stdio_dev *search_device(int, char *);
+struct stdio_dev *search_device(int, const char *);
#endif /* _IO_MUX_H */
diff --git a/include/stdio_dev.h b/include/stdio_dev.h
index 83da4cdff1..82ad463c10 100644
--- a/include/stdio_dev.h
+++ b/include/stdio_dev.h
@@ -93,10 +93,10 @@ int stdio_register (struct stdio_dev * dev);
int stdio_init (void);
void stdio_print_current_devices(void);
#ifdef CONFIG_SYS_STDIO_DEREGISTER
-int stdio_deregister(char *devname);
+int stdio_deregister(const char *devname);
#endif
struct list_head* stdio_get_list(void);
-struct stdio_dev* stdio_get_by_name(char* name);
+struct stdio_dev* stdio_get_by_name(const char* name);
struct stdio_dev* stdio_clone(struct stdio_dev *dev);
#ifdef CONFIG_ARM_DCC_MULTI
OpenPOWER on IntegriCloud