serial: fsl_linflexuart: deduplicate character sending
authorJiri Slaby <jslaby@suse.cz>
Mon, 24 Jan 2022 07:14:27 +0000 (08:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jan 2022 13:54:48 +0000 (14:54 +0100)
commit7b9528c2919091d77a892096d24480af39c70d25
tree685c4a9fbacf8c1e35f48ec301d29c7b43a39069
parent32330c833442d4041dbd20508f6cd2419deb16eb
serial: fsl_linflexuart: deduplicate character sending

Introduce a new linflex_put_char() helper to send a character. And use
it on both places this code was duplicated.

Cc: Stefan-gabriel Mirea <stefan-gabriel.mirea@nxp.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220124071430.14907-9-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_linflexuart.c