Razvan Stefanescu 6952a0956e tty/serial: atmel: Add is_half_duplex helper
commit f3040983132bf3477acd45d2452a906e67c2fec9 upstream.

Use a helper function to check that a port needs to use half duplex
communication, replacing several occurrences of multi-line bit checking.

Fixes: b389f173aaa1 ("tty/serial: atmel: RS485 half duplex w/DMA: enable RX after TX is done")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Razvan Stefanescu <razvan.stefanescu@microchip.com>
Acked-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-05 22:31:24 +02:00
..
2017-08-28 20:51:19 +02:00
2017-01-27 09:23:36 +01:00
2017-06-20 10:24:15 +08:00
2017-09-05 10:30:48 -07:00
2017-07-30 07:32:32 -07:00
2019-01-13 10:01:01 +01:00
2017-01-27 09:23:36 +01:00