]> asedeno.scripts.mit.edu Git - linux.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)
commit59556608139edda5aeeed5f73e435e8ddbb16516
treee6d3f6c441eafd01c05d50eba1c31faf502a419b
parentc6dce2626606ef16434802989466636bc28c1419
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