tty: Use termios c_*flag macros
Expressions of the form "tty->termios.c_*flag & FLAG" are more clearly expressed with the termios flags macros, I_FLAG(), C_FLAG(), O_FLAG(), and L_FLAG(). Convert treewide. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Acked-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
5823323ea5
commit
9db276f8f0
@@ -695,11 +695,11 @@ static void digi_set_termios(struct tty_struct *tty,
|
||||
arg = -1;
|
||||
|
||||
/* reassert DTR and (maybe) RTS on transition from B0 */
|
||||
if ((old_cflag&CBAUD) == B0) {
|
||||
if ((old_cflag & CBAUD) == B0) {
|
||||
/* don't set RTS if using hardware flow control */
|
||||
/* and throttling input */
|
||||
modem_signals = TIOCM_DTR;
|
||||
if (!(tty->termios.c_cflag & CRTSCTS) ||
|
||||
if (!C_CRTSCTS(tty) ||
|
||||
!test_bit(TTY_THROTTLED, &tty->flags))
|
||||
modem_signals |= TIOCM_RTS;
|
||||
digi_set_modem_signals(port, modem_signals, 1);
|
||||
@@ -1491,8 +1491,8 @@ static int digi_read_oob_callback(struct urb *urb)
|
||||
|
||||
rts = 0;
|
||||
if (tty)
|
||||
rts = tty->termios.c_cflag & CRTSCTS;
|
||||
|
||||
rts = C_CRTSCTS(tty);
|
||||
|
||||
if (tty && opcode == DIGI_CMD_READ_INPUT_SIGNALS) {
|
||||
spin_lock(&priv->dp_port_lock);
|
||||
/* convert from digi flags to termiox flags */
|
||||
|
Reference in New Issue
Block a user