OSDN Git Service

USB: serial: ftdi_sio: clean up TIOCSSERIAL
authorJohan Hovold <johan@kernel.org>
Wed, 7 Apr 2021 10:39:25 +0000 (12:39 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 8 Apr 2021 07:46:04 +0000 (09:46 +0200)
commit0428bf6807fe77e6d97c8e78538a594119d4aab2
tree705d6b94ac031aeb85bee35b9214d279cc59d1d0
parentc12860c0f6e6b6b0301760a2b0e3e6b3f83eace8
USB: serial: ftdi_sio: clean up TIOCSSERIAL

The TIOCSSERIAL implementation needs to compare the old flag and divisor
settings with the new to detect ASYNC_SPD changes, but there's no need
to copy all driver state to the stack for that.

While at it, unbreak the function parameter list.

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