summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/digi_acceleport.c
diff options
context:
space:
mode:
authorPeter Hurley2016-04-10 02:11:36 +0200
committerGreg Kroah-Hartman2016-04-30 18:26:55 +0200
commit97ef38b8210d7459d4cb51668cdf3983772ac6b7 (patch)
treef011edb839f562892be0d70dc021ad08cec6745e /drivers/usb/serial/digi_acceleport.c
parenttty: Replace TTY_IO_ERROR bit tests with tty_io_error() (diff)
downloadkernel-qcow2-linux-97ef38b8210d7459d4cb51668cdf3983772ac6b7.tar.gz
kernel-qcow2-linux-97ef38b8210d7459d4cb51668cdf3983772ac6b7.tar.xz
kernel-qcow2-linux-97ef38b8210d7459d4cb51668cdf3983772ac6b7.zip
tty: Replace TTY_THROTTLED bit tests with tty_throttled()
Abstract TTY_THROTTLED bit tests with tty_throttled(). Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/digi_acceleport.c')
-rw-r--r--drivers/usb/serial/digi_acceleport.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c
index 16e8e37b3b36..6a1df9e824ca 100644
--- a/drivers/usb/serial/digi_acceleport.c
+++ b/drivers/usb/serial/digi_acceleport.c
@@ -699,8 +699,7 @@ static void digi_set_termios(struct tty_struct *tty,
/* don't set RTS if using hardware flow control */
/* and throttling input */
modem_signals = TIOCM_DTR;
- if (!C_CRTSCTS(tty) ||
- !test_bit(TTY_THROTTLED, &tty->flags))
+ if (!C_CRTSCTS(tty) || !tty_throttled(tty))
modem_signals |= TIOCM_RTS;
digi_set_modem_signals(port, modem_signals, 1);
}