USB: opticon: switch to generic read implementation
authorJohan Hovold <jhovold@gmail.com>
Sun, 18 Nov 2012 12:23:36 +0000 (13:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 21:33:56 +0000 (13:33 -0800)
commit7a6ee2b02751a58b7a59a37483379ba9cddacc92
tree599f40681d4e3efd6fa1a541d0c33bd722b2bb3d
parent32802077ce90ba955a9c50c6b27e6e6015a907bf
USB: opticon: switch to generic read implementation

Switch to the more efficient generic read implementation.

Note that the generic implementation is not required to hold the tty
port mutex during resume due to the read-urb free mask and write start
flag.

Note also that the generic resume implementation will call generic
write start if there is a bulk-out end-point, but that nothing will be
submitted as the write fifo is not used and is empty.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/opticon.c