summaryrefslogtreecommitdiff
path: root/drivers/i2c/i2c-core.c
diff options
context:
space:
mode:
authorRazvan Stefanescu <razvan.stefanescu@microchip.com>2019-03-19 15:20:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-27 09:33:47 +0200
commita526c14d841b2dba90a56d2d59e2aaa6ef70f8c8 (patch)
tree3174473cb795ead89d6cf4697a7b9f04af65f6bf /drivers/i2c/i2c-core.c
parent6f88ce1ff22581e67e2c892189126216f5bce795 (diff)
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>
Diffstat (limited to 'drivers/i2c/i2c-core.c')
0 files changed, 0 insertions, 0 deletions