]> git.baikalelectronics.ru Git - uboot.git/commit
console: add function console_devices_set
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 18 Dec 2020 11:46:44 +0000 (12:46 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 15 Jan 2021 19:36:12 +0000 (14:36 -0500)
commit08c4b5295be25290a1e63e979b14cc34fc8f8582
tree162af5d4acaaf10f50ff0825ada0cd9eaf3440a9
parent9d2b769d60e2c97ba547f2a883f1c204e2674aac
console: add function console_devices_set

Add a new function to access to console_devices only defined if
CONFIG_IS_ENABLED(CONSOLE_MUX).

This path allows to remove #if CONFIG_IS_ENABLED(CONSOLE_MUX)
in console_getc function.

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