]> git.baikalelectronics.ru Git - uboot.git/commit
console: remove #ifdef CONFIG_CONSOLE_RECORD
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 18 Dec 2020 11:46:45 +0000 (12:46 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 15 Jan 2021 19:36:12 +0000 (14:36 -0500)
commitd6f57a698335131443c57d922a28710d408e4226
tree0d76785f5ca211b8ef0b477b5ddeaadffc167321
parent08c4b5295be25290a1e63e979b14cc34fc8f8582
console: remove #ifdef CONFIG_CONSOLE_RECORD

Add helper functions to access to gd->console_out and gd->console_in
with membuff API and replace the #ifdef CONFIG_CONSOLE_RECORD test
by if (IS_ENABLED(CONFIG_CONSOLE_RECORD)) to respect the U-Boot
coding rule.

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