drivers/char: make serial_parse_handle take const argument

It doesn't modify it, and it will be necessary in a subsequent patch.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Marek Marczykowski-Górecki authored and Jan Beulich committed 2022-08-16 11:23:26 +02:00
1 parent deb23751e1
commit ee8d9d0c1c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -301,7 +301,7 @@ char serial_getc(int handle)
return c & 0x7f;
}
int __init serial_parse_handle(char *conf)
int __init serial_parse_handle(const char *conf)
{
int handle, flags = 0;
+1 -1
View File
@@ -109,7 +109,7 @@ void serial_init_postirq(void);
void serial_endboot(void);
/* Takes a config string and creates a numeric handle on the COM port. */
int serial_parse_handle(char *conf);
int serial_parse_handle(const char *conf);
/* Transmit a single character via the specified COM port. */
void serial_putc(int handle, char c);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.