summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-10-02 19:44:17 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-10-11 13:51:02 +0200
commitdf487a49aba868050060808d1918958279d07ffa (patch)
treec6eaea9712e8917d519a9203011cd8b82a6f50b4 /common
parent09d2b6c6103af3b47d6159a15873122d7818c473 (diff)
downloadbarebox-df487a49aba868050060808d1918958279d07ffa.tar.gz
barebox-df487a49aba868050060808d1918958279d07ffa.tar.xz
console: fixup add new CONFIG_CONSOLE_DISABLE_INPUT option
Fix typo in CONFIG_CONSOLE_DISABLE_INPUT case for simple console. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20211002174417.27020-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/console_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/console_simple.c b/common/console_simple.c
index 3b95570e5e..8c404ad264 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -95,7 +95,7 @@ int console_register(struct console_device *newcdev)
newcdev->f_active = CONSOLE_STDIOE;
if (IS_ENABLED(CONFIG_CONSOLE_DISABLE_INPUT))
- newcdev->f_active = ~CONSOLE_STDIN;
+ newcdev->f_active &= ~CONSOLE_STDIN;
barebox_banner();