Commit e3553fee authored by Philippe Schenker's avatar Philippe Schenker Committed by Greg Kroah-Hartman

tty: serial: lpuart: Use defines that correspond to correct register

Use define from the 32-bit register description UARTMODIR_* instead of
UARTMODEM_*. The value is the same, so there is no functional change.
Signed-off-by: default avatarPhilippe Schenker <philippe.schenker@toradex.com>
Reviewed-by: default avatarStefan Agner <stefan.agner@toradex.com>
Reviewed-by: default avatarFugang Duan <fugang.duan@nxp.com>

Link: https://lore.kernel.org/r/20191017141428.10330-2-philippe.schenker@toradex.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2b30efe2
...@@ -1879,10 +1879,10 @@ lpuart32_set_termios(struct uart_port *port, struct ktermios *termios, ...@@ -1879,10 +1879,10 @@ lpuart32_set_termios(struct uart_port *port, struct ktermios *termios,
} }
if (termios->c_cflag & CRTSCTS) { if (termios->c_cflag & CRTSCTS) {
modem |= UARTMODEM_RXRTSE | UARTMODEM_TXCTSE; modem |= (UARTMODIR_RXRTSE | UARTMODIR_TXCTSE);
} else { } else {
termios->c_cflag &= ~CRTSCTS; termios->c_cflag &= ~CRTSCTS;
modem &= ~(UARTMODEM_RXRTSE | UARTMODEM_TXCTSE); modem &= ~(UARTMODIR_RXRTSE | UARTMODIR_TXCTSE);
} }
if (termios->c_cflag & CSTOPB) if (termios->c_cflag & CSTOPB)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment