arch/arm64/src/imx9/imx9_lpuart.c: Fix parity get in TCGETS
This is a partial revert / fix for regression from 44d1811ebb
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
parent
94a13982eb
commit
da19d79656
|
@ -1613,8 +1613,8 @@ static int imx9_ioctl(struct file *filep, int cmd, unsigned long arg)
|
|||
|
||||
/* Return parity */
|
||||
|
||||
termiosp->c_cflag = (!priv->parity ? PARENB : 0) |
|
||||
(priv->parity ? PARODD : 0);
|
||||
termiosp->c_cflag = ((priv->parity != 0) ? PARENB : 0) |
|
||||
((priv->parity == 1) ? PARODD : 0);
|
||||
|
||||
/* Return stop bits */
|
||||
|
||||
|
|
Loading…
Reference in New Issue