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>
Este commit está contenido en:

cometido por
Greg Kroah-Hartman

padre
5823323ea5
commit
9db276f8f0
@@ -1398,7 +1398,7 @@ static void edge_throttle(struct tty_struct *tty)
|
||||
}
|
||||
|
||||
/* if we are implementing RTS/CTS, toggle that line */
|
||||
if (tty->termios.c_cflag & CRTSCTS) {
|
||||
if (C_CRTSCTS(tty)) {
|
||||
edge_port->shadowMCR &= ~MCR_RTS;
|
||||
status = send_cmd_write_uart_register(edge_port, MCR,
|
||||
edge_port->shadowMCR);
|
||||
@@ -1435,7 +1435,7 @@ static void edge_unthrottle(struct tty_struct *tty)
|
||||
return;
|
||||
}
|
||||
/* if we are implementing RTS/CTS, toggle that line */
|
||||
if (tty->termios.c_cflag & CRTSCTS) {
|
||||
if (C_CRTSCTS(tty)) {
|
||||
edge_port->shadowMCR |= MCR_RTS;
|
||||
send_cmd_write_uart_register(edge_port, MCR,
|
||||
edge_port->shadowMCR);
|
||||
|
Referencia en una nueva incidencia
Block a user