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
@@ -1864,7 +1864,7 @@ static void mxser_stoprx(struct tty_struct *tty)
|
||||
}
|
||||
}
|
||||
|
||||
if (tty->termios.c_cflag & CRTSCTS) {
|
||||
if (C_CRTSCTS(tty)) {
|
||||
info->MCR &= ~UART_MCR_RTS;
|
||||
outb(info->MCR, info->ioaddr + UART_MCR);
|
||||
}
|
||||
@@ -1901,7 +1901,7 @@ static void mxser_unthrottle(struct tty_struct *tty)
|
||||
}
|
||||
}
|
||||
|
||||
if (tty->termios.c_cflag & CRTSCTS) {
|
||||
if (C_CRTSCTS(tty)) {
|
||||
info->MCR |= UART_MCR_RTS;
|
||||
outb(info->MCR, info->ioaddr + UART_MCR);
|
||||
}
|
||||
@@ -1949,15 +1949,13 @@ static void mxser_set_termios(struct tty_struct *tty, struct ktermios *old_termi
|
||||
mxser_change_speed(tty, old_termios);
|
||||
spin_unlock_irqrestore(&info->slock, flags);
|
||||
|
||||
if ((old_termios->c_cflag & CRTSCTS) &&
|
||||
!(tty->termios.c_cflag & CRTSCTS)) {
|
||||
if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) {
|
||||
tty->hw_stopped = 0;
|
||||
mxser_start(tty);
|
||||
}
|
||||
|
||||
/* Handle sw stopped */
|
||||
if ((old_termios->c_iflag & IXON) &&
|
||||
!(tty->termios.c_iflag & IXON)) {
|
||||
if ((old_termios->c_iflag & IXON) && !I_IXON(tty)) {
|
||||
tty->stopped = 0;
|
||||
|
||||
if (info->board->chip_flag) {
|
||||
|
Reference in New Issue
Block a user