pch_uart: Fix parity setting issue
Parity Setting value is reverse. E.G. In case of setting ODD parity, EVEN value is set. This patch inverts "if" condition. Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ae213f3035
commit
2fc39aebf6
|
@ -1368,7 +1368,7 @@ static void pch_uart_set_termios(struct uart_port *port,
|
|||
stb = PCH_UART_HAL_STB1;
|
||||
|
||||
if (termios->c_cflag & PARENB) {
|
||||
if (!(termios->c_cflag & PARODD))
|
||||
if (termios->c_cflag & PARODD)
|
||||
parity = PCH_UART_HAL_PARITY_ODD;
|
||||
else
|
||||
parity = PCH_UART_HAL_PARITY_EVEN;
|
||||
|
|
Loading…
Reference in a new issue