]> git.baikalelectronics.ru Git - uboot.git/commit
console: add console_has_tstc helper function for CONSOLE_MUX
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 18 Dec 2020 11:46:46 +0000 (12:46 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 15 Jan 2021 19:36:12 +0000 (14:36 -0500)
commit51b6a12a8bd22fcc6103423a1fc5ce614a21cfc6
tree5c494121a18ba04d7eb8e98624e7ce558bafbfbe
parentd6f57a698335131443c57d922a28710d408e4226
console: add console_has_tstc helper function for CONSOLE_MUX

Add the helper function console_has_tstc() and replace the test
#if CONFIG_IS_ENABLED(CONSOLE_MUX) to a simple 'if' test to
respect the U-Boot coding rule.

No functional change.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/console.c