]> git.dujemihanovic.xyz Git - u-boot.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)
commita17b38ce3902e46777322f6ec26e51b25415fa5b
tree5c494121a18ba04d7eb8e98624e7ce558bafbfbe
parent1e993710e8b99510a37f91fa97d9b783c6e5f32d
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