serial: mcf: use helpers in mcf_tx_chars()
authorJiri Slaby <jslaby@suse.cz>
Mon, 24 Jan 2022 07:14:30 +0000 (08:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jan 2022 13:55:14 +0000 (14:55 +0100)
commite41752c0e79b033fe0ea186bba0f6bb558c49729
tree43dd9bb65524e2910ee435ca7f5e1ce24c4e2115
parentd88812a8d66617efdb41d787efca0907ccd98716
serial: mcf: use helpers in mcf_tx_chars()

Use uart_circ_empty() instead of open-coding it via xmit->head & tail.
Use preexisting mcf_stop_tx() to avoid stop-tx code duplication.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220124071430.14907-12-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mcf.c