Skip to content

Commit

Permalink
Fix for juliagoda#34: incompatible-pointer-types
Browse files Browse the repository at this point in the history
Signed-off-by: 6r1d <[email protected]>
  • Loading branch information
6r1d committed Feb 4, 2023
1 parent e70c14c commit 1dc29e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ch34x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 1dc29e5

Please sign in to comment.