serial: fsl_lpuart: clear unsupported options in .rs485_config()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 18 Jul 2017 10:59:40 +0000 (12:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2017 14:46:06 +0000 (07:46 -0700)
commit68c338eaa0bf3e399a1b96ac35d909f0b475208f
tree6f05833cf29b5e9dd6f5be620660a36cfedad6b4
parent7d8905d064058f4b65057e0101588f362f288bc0
serial: fsl_lpuart: clear unsupported options in .rs485_config()

The struct serial_rs485 parameter is both input and output and is
supposed to hold the actually used configuration on return. So clear
unsupported settings.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c