summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-09-12 14:46:51 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2018-10-13 07:50:43 +0300
commit930236a30897532653a61ed22ae7eca13154accd (patch)
tree966cf1e274b9c6c5bb99c8790e94f2ab69fffc31 /drivers/usb
parent15cc7bad48977582a35c06f5afa0cfc1d4975bd9 (diff)
downloadlinux-930236a30897532653a61ed22ae7eca13154accd.tar.xz
complete ->[sg]et_serial() switchover
Reviewed-by: Johan Hovold <johan@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/usb-serial.c4
1 files changed, 2 insertions, 2 deletions
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,