mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
stdio: constify "name" arg in public api
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
committed by
Wolfgang Denk
parent
5a442c0add
commit
d7be3056de
@@ -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;
|
||||
|
Reference in New Issue
Block a user