mxser: extract TX empty check from mxser_wait_until_sent()
authorJiri Slaby <jslaby@suse.cz>
Thu, 18 Nov 2021 07:31:17 +0000 (08:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 17:33:22 +0000 (18:33 +0100)
commit239ef19ef040698ccbabf25582b40c43554542fd
tree9089b85181bc5880aa410e95dff23ea16f3499de
parentc7ec012f6c563a84fc5c3052d490292a129413b7
mxser: extract TX empty check from mxser_wait_until_sent()

And move it to new mxser_tx_empty(), because:
1) it simplifies the code (esp. the locking), and
2) serial_core needs such a hook anyway, so have it ready.

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