mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-05 19:39:50 +08:00
Merge branch 'v6.1-fixups' into 'master'
tty/module.c: fixups for linux >= v6.1 See merge request etherlab.org/ethercat!68 (cherry picked from commitf8c9ec6e48)bbb16b87tty/module.c: adapt signature of ->set_termios method to v6.1d39b4a59tty/module.c: include proper header for INIT_C_CC definition
This commit is contained in:
@@ -45,6 +45,10 @@
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
||||
#include <linux/termios_internal.h>
|
||||
#endif
|
||||
|
||||
#include "../master/globals.h"
|
||||
#include "../include/ectty.h"
|
||||
|
||||
@@ -634,8 +638,13 @@ static int ec_tty_ioctl(struct tty_struct *tty,
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
||||
static void ec_tty_set_termios(struct tty_struct *tty,
|
||||
const struct ktermios *old_termios)
|
||||
#else
|
||||
static void ec_tty_set_termios(struct tty_struct *tty,
|
||||
struct ktermios *old_termios)
|
||||
#endif
|
||||
{
|
||||
ec_tty_t *t = (ec_tty_t *) tty->driver_data;
|
||||
int ret;
|
||||
|
||||
Reference in New Issue
Block a user