serial: liteuart: move polling putchar() function
authorGabriel Somlo <gsomlo@gmail.com>
Wed, 23 Nov 2022 13:05:00 +0000 (08:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 13:59:41 +0000 (14:59 +0100)
commitf1c6c8b1b42dd72bd54adec003463650b84893d8
treee28b6db6fd69b9e9fdf2e03aa0608df78f581b1d
parent01a305a36639a438e27503202a46f191b74bd168
serial: liteuart: move polling putchar() function

The polling liteuart_putchar() function is only called from methods
conditionally enabled by CONFIG_SERIAL_LITEUART_CONSOLE. Move its
definition closer to the console code where it is dependent on the
same config option.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20221123130500.1030189-15-gsomlo@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/liteuart.c