mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
serial: core: Make uart_parse_options take const char* argument
The pointed string is never modified from within uart_parse_options, so it should be marked as const in the function prototype. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b9820a3169
commit
0f646b63a1
2 changed files with 4 additions and 3 deletions
|
@ -387,7 +387,7 @@ struct uart_port *uart_get_console(struct uart_port *ports, int nr,
|
|||
struct console *c);
|
||||
int uart_parse_earlycon(char *p, unsigned char *iotype, resource_size_t *addr,
|
||||
char **options);
|
||||
void uart_parse_options(char *options, int *baud, int *parity, int *bits,
|
||||
void uart_parse_options(const char *options, int *baud, int *parity, int *bits,
|
||||
int *flow);
|
||||
int uart_set_options(struct uart_port *port, struct console *co, int baud,
|
||||
int parity, int bits, int flow);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue