Skip to contentSkip to conversation

+ printk-move-braille-console-support-into-separate-braille-files.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jul 17, 2013 Printk

lore
Share & tools
lore
#0 lore raw

Subject: + printk-move-braille-console-support-into-separate-braille-files.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 17 Jul 2013 15:29:15 -0700

The patch titled
Subject: printk: move braille console support into separate braille.[ch] files
has been added to the -mm tree. Its filename is
printk-move-braille-console-support-into-separate-braille-files.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/printk-move-braille-console-support-into-separate-braille-files.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/printk-move-braille-console-support-into-separate-braille-files.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Joe Perches <[email protected]>
Subject: printk: move braille console support into separate braille.[ch] files

Create files with prototypes and static inlines for braille support. Make braille_console functions return 1 on success.

Corrected CONFIG_A11Y_BRAILLE_CONSOLE=n _braille_console_setup return value to NULL.

---

 drivers/accessibility/braille/braille_console.c |    9 ++
 kernel/printk/Makefile                          |    1 
 kernel/printk/braille.c                         |   48 ++++++++++++++
 kernel/printk/braille.h                         |   48 ++++++++++++++
 kernel/printk/printk.c                          |   44 +++---------
 5 files changed, 117 insertions(+), 33 deletions(-)
drivers/accessibility/braille/braille_console.c renamed from drivers/accessibility/braille/braille_console.c~printk-move-braille-console-support-into-separate-braille-files +7 -2
diff -puN drivers/accessibility/braille/braille_console.c~printk-move-braille-console-support-into-separate-braille-files drivers/accessibility/braille/braille_console.c
@@ -359,6 +359,9 @@ int braille_register_console(struct cons
 		char *console_options, char *braille_options)
 {
 	int ret;
+
+	if (!(console->flags & CON_BRL))
+		return 0;
 	if (!console_options)
 		/* Only support VisioBraille for now */
 		console_options = "57600o8";
@@ -374,15 +377,17 @@ int braille_register_console(struct cons
 	braille_co = console;
 	register_keyboard_notifier(&keyboard_notifier_block);
 	register_vt_notifier(&vt_notifier_block);
-	return 0;
+	return 1;
 }
 
 int braille_unregister_console(struct console *console)
 {
 	if (braille_co != console)
 		return -EINVAL;
+	if (!(console->flags & CON_BRL))
+		return 0;
 	unregister_keyboard_notifier(&keyboard_notifier_block);
 	unregister_vt_notifier(&vt_notifier_block);
 	braille_co = NULL;
-	return 0;
+	return 1;
 }
kernel/printk/Makefile renamed from kernel/printk/Makefile~printk-move-braille-console-support-into-separate-braille-files +1 -0
diff -puN kernel/printk/Makefile~printk-move-braille-console-support-into-separate-braille-files kernel/printk/Makefile
@@ -1 +1,2 @@
 obj-y	= printk.o
+obj-$(CONFIG_A11Y_BRAILLE_CONSOLE)	+= braille.o
kernel/printk/braille.c new file +48 -0

48 lines not on this page · raw message

kernel/printk/braille.h new file +48 -0

48 lines not on this page · raw message

kernel/printk/printk.c renamed from kernel/printk/printk.c~printk-move-braille-console-support-into-separate-braille-files +13 -31

77 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are

linux-next.patch maintainers-dynamic-debug-jasons-not-there.patch printk-move-to-separate-directory-for-easier-modification.patch printk-add-console_cmdlineh.patch printk-move-braille-console-support-into-separate-braille-files.patch printk-use-pointer-for-console_cmdline-indexing.patch printk-rename-struct-log-to-struct-printk_log.patch firmware-dmi_scan-drop-obsolete-comment.patch firmware-dmi_scan-fix-most-checkpatch-errors-and-warnings.patch firmware-dmi_scan-constify-strings.patch firmware-dmi_scan-drop-oom-messages.patch