tty: serial: uartps: Relocate cdns_uart_tx_empty to facilitate rs485
authorManikanta Guntupalli <manikanta.guntupalli@amd.com>
Tue, 23 Jan 2024 06:16:54 +0000 (11:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jan 2024 03:07:08 +0000 (19:07 -0800)
commit74231ab6cc2d02303ddf1fabd878756c52f788a5
tree49c0255807bcc08e7014d5e168c24ebefa1345a2
parent32152467ffac3b79eae7313959c310946b0e6072
tty: serial: uartps: Relocate cdns_uart_tx_empty to facilitate rs485

Relocate cdns_uart_tx_empty function to avoid prototype statement in
rs485 changes.
Update return check with uart_tx_stopped() in cdns_uart_handle_tx().

Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@amd.com>
Link: https://lore.kernel.org/r/20240123061655.2150946-3-manikanta.guntupalli@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c