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

vanhempi
5823323ea5
commit
9db276f8f0
@@ -1165,8 +1165,7 @@ static void cypress_read_int_callback(struct urb *urb)
|
||||
|
||||
/* hangup, as defined in acm.c... this might be a bad place for it
|
||||
* though */
|
||||
if (tty && !(tty->termios.c_cflag & CLOCAL) &&
|
||||
!(priv->current_status & UART_CD)) {
|
||||
if (tty && !C_CLOCAL(tty) && !(priv->current_status & UART_CD)) {
|
||||
dev_dbg(dev, "%s - calling hangup\n", __func__);
|
||||
tty_hangup(tty);
|
||||
goto continue_read;
|
||||
|
Viittaa uudesa ongelmassa
Block a user