Skip to content

Commit

Permalink
Merge pull request #35 from 6r1d/new_kernel_fix
Browse files Browse the repository at this point in the history
Fix for #34: incompatible-pointer-types
  • Loading branch information
juliagoda authored Feb 7, 2023
2 parents e70c14c + 1dc29e5 commit 821436a
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 821436a

Please sign in to comment.