OSDN Git Service

USB: serial: io_ti: add send-port-command helper
authorJohan Hovold <johan@kernel.org>
Mon, 12 Apr 2021 09:47:30 +0000 (11:47 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 13 Apr 2021 16:23:26 +0000 (18:23 +0200)
commit7a14fac0c94472ad2d11ac14cefbeab5bf98e303
tree7dfcea978cb3ae61960769a4707f99b42777f4d1
parente8d89db01a97be04050fb2bc74ed6b6f01ed9169
USB: serial: io_ti: add send-port-command helper

Add a send-port-command helper which takes care of determining the UART
module id when sending commands instead of doing so at every call site.

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