[PATCH] fixup! console: add new CONFIG_CONSOLE_DISABLE_INPUT option

Ahmad Fatoum a.fatoum at pengutronix.de
Sat Oct 2 10:44:17 PDT 2021


Fix typo in CONFIG_CONSOLE_DISABLE_INPUT case for simple console.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
Sorry, just noticed it when looking again at the diff. Please squash.
---
 common/console_simple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/console_simple.c b/common/console_simple.c
index 3b95570e5e76..8c404ad264c4 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();
 
-- 
2.30.2




More information about the barebox mailing list