USB: serial: clean up throttle handling
authorJohan Hovold <johan@kernel.org>
Thu, 25 Apr 2019 16:05:37 +0000 (18:05 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 30 Apr 2019 08:23:29 +0000 (10:23 +0200)
commita8d78d9f385642696723fcb9c52c2c2805fa4249
tree368433304e6f08f7855b4187ba4ce6fd4f6b235a
parent3f5edd58d040bfa4b74fb89bc02f0bc6b9cd06ab
USB: serial: clean up throttle handling

Clean up the throttle implementation by dropping the redundant
throttle_req flag which was a remnant from back when there was only a
single read URB.

Also convert the throttled flag to an atomic bit flag.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/generic.c
include/linux/usb/serial.h