STM32 Serial: Fix some incorrect conditional compilation
This commit is contained in:
parent
d2799f0b4e
commit
b065b1f5df
@ -2017,7 +2017,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
/* Perform some sanity checks before accepting any changes */
|
||||
|
||||
if (((termiosp->c_cflag & CSIZE) != CS8)
|
||||
#ifdef CONFIG_SERIAL_IFLOWCONTROL
|
||||
#ifdef CONFIG_SERIAL_OFLOWCONTROL
|
||||
|| ((termiosp->c_cflag & CCTS_OFLOW) && (priv->cts_gpio == 0))
|
||||
#endif
|
||||
#ifdef CONFIG_SERIAL_IFLOWCONTROL
|
||||
|
Loading…
Reference in New Issue
Block a user