projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ffa6ec
)
USB: serial: xr: use termios flag helpers
author
Johan Hovold
<johan@kernel.org>
Thu, 21 Jan 2021 10:29:16 +0000
(11:29 +0100)
committer
Johan Hovold
<johan@kernel.org>
Tue, 26 Jan 2021 15:16:49 +0000
(16:16 +0100)
Use the termios flag helpers consistently, including for CRTSCTS.
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/xr_serial.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/xr_serial.c
b/drivers/usb/serial/xr_serial.c
index
8f81f86
..
52909dc
100644
(file)
--- a/
drivers/usb/serial/xr_serial.c
+++ b/
drivers/usb/serial/xr_serial.c
@@
-401,7
+401,6
@@
static int xr_set_baudrate(struct tty_struct *tty,
static void xr_set_flow_mode(struct tty_struct *tty,
struct usb_serial_port *port)
{
- unsigned int cflag = tty->termios.c_cflag;
u8 flow, gpio_mode;
int ret;
@@
-409,7
+408,7
@@
static void xr_set_flow_mode(struct tty_struct *tty,
if (ret)
return;
- if (
cflag & CRTSCTS
) {
+ if (
C_CRTSCTS(tty)
) {
dev_dbg(&port->dev, "Enabling hardware flow ctrl\n");
/*