mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fixup! console: add new CONFIG_CONSOLE_DISABLE_INPUT option
@ 2021-10-02 17:44 Ahmad Fatoum
  0 siblings, 0 replies; only message in thread
From: Ahmad Fatoum @ 2021-10-02 17:44 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Fix typo in CONFIG_CONSOLE_DISABLE_INPUT case for simple console.

Signed-off-by: Ahmad Fatoum <a.fatoum@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-02 17:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-02 17:44 [PATCH] fixup! console: add new CONFIG_CONSOLE_DISABLE_INPUT option Ahmad Fatoum

mail archive of the barebox mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://lore.barebox.org/barebox/0 barebox/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 barebox barebox/ https://lore.barebox.org/barebox \
		barebox@lists.infradead.org
	public-inbox-index barebox

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git