complete ->[sg]et_serial() switchover

Reviewed-by: Johan Hovold <[email protected]>
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2018-09-12 07:46:51 -04:00
commit 930236a308
2 changed files with 6 additions and 12 deletions

View file

@ -402,7 +402,7 @@ static int serial_get_serial(struct tty_struct *tty, struct serial_struct *ss)
if (port->serial->type->get_serial)
return port->serial->type->get_serial(tty, ss);
return -ENOIOCTLCMD;
return -ENOTTY;
}
static int serial_set_serial(struct tty_struct *tty, struct serial_struct *ss)
@ -411,7 +411,7 @@ static int serial_set_serial(struct tty_struct *tty, struct serial_struct *ss)
if (port->serial->type->set_serial)
return port->serial->type->set_serial(tty, ss);
return -ENOIOCTLCMD;
return -ENOTTY;
}
static int serial_ioctl(struct tty_struct *tty,