Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions driver/ch341.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,11 @@ static void ch341_tty_close(struct tty_struct *tty, struct file *filp)
tty_port_close(&ch341->port, tty, filp);
}

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0))
static ssize_t ch341_tty_write(struct tty_struct *tty, const unsigned char *buf, size_t count)
#else
static int ch341_tty_write(struct tty_struct *tty, const unsigned char *buf, int count)
#endif
{
struct ch341 *ch341 = tty->driver_data;
int stat;
Expand Down