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 ee43532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch34x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee43532

Please sign in to comment.