From 930236a30897532653a61ed22ae7eca13154accd Mon Sep 17 00:00:00 2001 From: Al Viro Date: Wed, 12 Sep 2018 07:46:51 -0400 Subject: complete ->[sg]et_serial() switchover Reviewed-by: Johan Hovold Signed-off-by: Al Viro --- drivers/usb/serial/usb-serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/usb') diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 0f96d82fc575..7e89efbf2c28 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c @@ -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, -- cgit v1.2.3