]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7924589815b1ff8d03a849088590bc2dd2f34d48
tree705d6b94ac031aeb85bee35b9214d279cc59d1d0
parent262a7ef20216d3f3d224ba518dd4b01706b764d4
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