tty/module.c: adapt signature of ->set_termios method to v6.1
Upstream changed ->set_termios to take a const struct ktermios in commit a8c11c1520347 (tty: Make ->set_termios() old ktermios const).
This commit is contained in:
parent
960895cb4d
commit
bbb16b872b
|
|
@ -657,8 +657,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,
|
static void ec_tty_set_termios(struct tty_struct *tty,
|
||||||
struct ktermios *old_termios)
|
struct ktermios *old_termios)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
ec_tty_t *t = (ec_tty_t *) tty->driver_data;
|
ec_tty_t *t = (ec_tty_t *) tty->driver_data;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue