diff mbox series

[v4,04/11] drivers/char: make serial_parse_handle take const argument

Message ID c30950363e09ab1298ac2a692822252762a417d6.1660354597.git-series.marmarek@invisiblethingslab.com (mailing list archive)
State Superseded
Headers show
Series Add Xue - console over USB 3 Debug Capability | expand

Commit Message

Marek Marczykowski-Górecki Aug. 13, 2022, 1:38 a.m. UTC
It doesn't modify it, and it will be necessary in a subsequent patch.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
 xen/drivers/char/serial.c | 2 +-
 xen/include/xen/serial.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Jan Beulich Aug. 15, 2022, 1:19 p.m. UTC | #1
On 13.08.2022 03:38, Marek Marczykowski-Górecki wrote:
> 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>
diff mbox series

Patch

diff --git a/xen/drivers/char/serial.c b/xen/drivers/char/serial.c
index f6c944bd305b..47899222cef8 100644
--- a/xen/drivers/char/serial.c
+++ b/xen/drivers/char/serial.c
@@ -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;
 
diff --git a/xen/include/xen/serial.h b/xen/include/xen/serial.h
index 181e026967bc..4cd4ae5e6f1c 100644
--- a/xen/include/xen/serial.h
+++ b/xen/include/xen/serial.h
@@ -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);