From 1dc29e5745a9cda1b0016dfb759c2eb4ad82b1cf 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ch34x.c b/ch34x.c index dd08001..b007e94 100644 --- a/ch34x.c +++ b/ch34x.c @@ -397,7 +397,11 @@ static int ch34x_get_baud_rate( unsigned int baud_rate, return 0; } -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,0,1)) +static void ch34x_set_termios( struct tty_struct *tty, + struct usb_serial_port *port, const struct ktermios *old_termios ) +{ +#elif (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 ) {