summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-01-21 13:29:16 +0300
committerJohan Hovold <johan@kernel.org>2021-01-26 18:16:49 +0300
commit5c5d9af683f61bf0984f06db0d1357e94b5e2655 (patch)
tree05b9a680db24e50f99b7910236686d925b8ec724 /drivers/usb
parent9ffa6ec51ce8595ffaa5a634bd5618e129d038c0 (diff)
downloadlinux-5c5d9af683f61bf0984f06db0d1357e94b5e2655.tar.xz
USB: serial: xr: use termios flag helpers
Use the termios flag helpers consistently, including for CRTSCTS. Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/xr_serial.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/xr_serial.c b/drivers/usb/serial/xr_serial.c
index 8f81f866d681..52909dccb4dc 100644
--- 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");
/*