[PATCH v3 4/4] console: add console_has_tstc helper function for CONSOLE_MUX

Simon Glass sjg at chromium.org
Sat Dec 19 04:34:55 CET 2020


On Fri, 18 Dec 2020 at 04:46, Patrick Delaunay
<patrick.delaunay at foss.st.com> wrote:
>
> From: Patrick Delaunay <patrick.delaunay at st.com>
>
> 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 at st.com>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
>
> Changes in v3:
> - update commit message with new function name console_has_tstc
>
> Changes in v2:
> - add comment for tstcdev variable
> - rename console_tstc_check to console_has_tstc
>
>  common/console.c | 37 +++++++++++++++++++++++++------------
>  1 file changed, 25 insertions(+), 12 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list