usb-serial: begin switching to ->[sg]et_serial()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 12 Sep 2018 03:28:07 +0000 (23:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Oct 2018 04:50:34 +0000 (00:50 -0400)
commit81732b26e05994552f347746eb11762e986079a0
treea633d4266d0279ab86464dc33d6f104a5d51a3dd
parent6a9daed31cc8dc1ca0b3d25f85426adbd2112293
usb-serial: begin switching to ->[sg]et_serial()

add such methods for usb_serial_driver, provide tty_operations
->[sg]et_serial() calling those.  For now the lack of methods
in driver means ENOIOCTLCMD from usb-serial ->[sg]et_serial(),
making tty_ioctl() fall back to calling ->ioctl().  Once all
drivers are converted, we'll be returning -ENOTTY instead,
completing the switchover.

Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/usb/serial/usb-serial.c
include/linux/usb/serial.h