]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: usb_wwan/option: generalize option_send_setup for other drivers
authorDavid Ward <david.ward@ll.mit.edu>
Wed, 16 Sep 2015 16:27:57 +0000 (12:27 -0400)
committerJohan Hovold <johan@kernel.org>
Fri, 9 Oct 2015 10:42:40 +0000 (12:42 +0200)
commit669e729f9fb4e05ff02dfa01cbb8606549c6cb7c
treed7edd05b71e03caa3af530da3b79c83ff9306f55
parentbd8869e86b8a1e5e5b29fad766b2676bb74e5395
USB: usb_wwan/option: generalize option_send_setup for other drivers

Only the option driver implements the send_setup callback; it uses the
SET_CONTROL_LINE_STATE request in CDC ACM to generate DTR/RTS signals
on the port. This is not driver-specific though and is needed by other
drivers, so move the function to the usb_wwan driver (with formatting
tweaks), and replace the callback pointer with a flag that enables the
request.

Suggested-by: Bjørn Mork <bjorn@mork.no>
Suggested-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/option.c
drivers/usb/serial/usb-wwan.h
drivers/usb/serial/usb_wwan.c