serial: Implement serial_flush() function for console flush() fallback
authorPali Rohár <pali@kernel.org>
Mon, 5 Sep 2022 09:31:19 +0000 (11:31 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 24 Sep 2022 15:34:37 +0000 (11:34 -0400)
commit78b5243182be8fa222f6d496e7d49675fde4d09e
tree126ed9de35861d001877adb0414e272427a61b97
parent016e2be96d4247ceacca05932f2e94d31607cc57
serial: Implement serial_flush() function for console flush() fallback

Like in all other console functions, implement also serial_flush() function
as a fallback int console flush() function.

Flush support is available only when config option CONSOLE_FLUSH_SUPPORT is
enabled. So when it is disabled then provides just empty static inline
function serial_flush().

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/console.c
common/stdio.c
drivers/serial/serial-uclass.c
include/serial.h