]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: extract tx_ready() from __serial_lpc32xx_tx()
authorJiri Slaby <jslaby@suse.cz>
Tue, 20 Sep 2022 05:20:45 +0000 (07:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2022 14:14:08 +0000 (16:14 +0200)
commit4edcfabc52cff45fee9c1141394e20de37a0bf62
treebd9254ec54a460d20b1fbf56d38cbcbeb29ea81c
parentc827329875b8c5f9160d78538be1dc9bd9ef3ad9
tty: serial: extract tx_ready() from __serial_lpc32xx_tx()

The condition in __serial_lpc32xx_tx()'s loop is barely readable.
Extract it to a separate function. This will make the cleanup in the
next patches easier too.

Cc: Vladimir Zapolskiy <vz@mleia.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220920052049.20507-6-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/lpc32xx_hs.c