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:
Jukka Laitinen 2024-10-31 10:34:18 +02:00 committed by Xiang Xiao
parent 94a13982eb
commit da19d79656
1 changed files with 2 additions and 2 deletions

View File

@ -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 */