OSDN Git Service

USB: serial: usb_wwan: replace DTR/RTS magic numbers with macros
authorYan Xinyu <sdlyyxy@bupt.edu.cn>
Mon, 25 Jul 2022 07:58:41 +0000 (09:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jul 2022 08:57:43 +0000 (10:57 +0200)
commitd5e22360e907dbf570116c3c08be0d3e5be43a23
treea8e6064ce31e5660a5d151903fd4694154391ed0
parentf4beed1e91326630a4ec3fb2e209f06a7ca2e983
USB: serial: usb_wwan: replace DTR/RTS magic numbers with macros

The usb_wwan_send_setup function generates DTR/RTS signals in compliance
with CDC ACM standard. This patch changes magic numbers in this function
to equivalent macros.

Link: https://lore.kernel.org/r/20220722085040.704885-1-sdlyyxy@bupt.edu.cn
[ johan: use the new CDC control-line defines ]
Signed-off-by: Yan Xinyu <sdlyyxy@bupt.edu.cn>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20220725075841.1187-8-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/usb_wwan.c