From ee43532ad76d54c861b50d3540e72a16f683dda6 Mon Sep 17 00:00:00 2001 From: 6r1d Date: Sat, 4 Feb 2023 17:08:03 +0200 Subject: [PATCH] Fix for #34: incompatible-pointer-types Signed-off-by: 6r1d --- ch34x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch34x.c b/ch34x.c index dd08001..877bc5b 100644 --- a/ch34x.c +++ b/ch34x.c @@ -399,11 +399,11 @@ static int ch34x_get_baud_rate( unsigned int baud_rate, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) static void ch34x_set_termios( struct tty_struct *tty, - struct usb_serial_port *port, struct ktermios *old_termios ) + struct usb_serial_port *port, const struct ktermios *old_termios ) { #else static void ch34x_set_termios( struct usb_serial_port *port, - struct ktermios *old_termios ) + const struct ktermios *old_termios ) { struct tty_struct *tty = port->tty; #endif