]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: ftdi_sio: clean up ioctl handler
authorJohan Hovold <johan@kernel.org>
Wed, 25 Jan 2017 17:22:53 +0000 (18:22 +0100)
committerJohan Hovold <johan@kernel.org>
Thu, 26 Jan 2017 08:48:43 +0000 (09:48 +0100)
commit99ee5f848e5c207bc63f59faaaf98ac5b8fc787a
treee6d3f6c441eafd01c05d50eba1c31faf502a419b
parent0846c9aa738f56823738e31db2bb106c6f9bdc94
USB: serial: ftdi_sio: clean up ioctl handler

Clean up the ioctl handler and make sure to pass an unsigned-int rather
than serial_struct pointer to the TIOCSERGETLSR helper as this it what
the user argument really is.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ftdi_sio.c