diff --git a/xmm7360.c b/xmm7360.c index 1b5a90c..a32b29f 100644 --- a/xmm7360.c +++ b/xmm7360.c @@ -1278,8 +1278,13 @@ static void xmm7360_tty_close(struct tty_struct *tty, struct file *filp) tty_port_close(&qp->port, tty, filp); } +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0) +static ssize_t xmm7360_tty_write(struct tty_struct *tty, + const unsigned char *buffer, size_t count) +#else static int xmm7360_tty_write(struct tty_struct *tty, const unsigned char *buffer, int count) +#endif { struct queue_pair *qp = tty->driver_data; int written;