Skip to contentSkip to conversation

printk-move-braille-console-support-into-separate-braille-files.patch removed from -mm tree

merged [email protected] 1 participant 1 message Aug 5, 2013 Printk

lore
Share & tools
lore
#0 lore raw

Subject: [merged] printk-move-braille-console-support-into-separate-braille-files.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 05 Aug 2013 12:06:01 -0700

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

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
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

maintainers-exynos-remove-board-files.patch maintainers-arm-omap2-3-remove-unused-clockdomain-files.patch maintainers-omap-powerdomain-update-patterns.patch maintainers-arm-s3c2410-update-patterns.patch maintainers-arm-spear-consolidate-sections.patch maintainers-arm-plat-nomadik-update-patterns.patch maintainers-arm-s3c24xx-remove-plat-s3c24xx.patch maintainers-ghes_edac-update-pattern.patch maintainers-update-siano-drivers.patch maintainers-si4713-fix-file-pattern.patch maintainers-update-it913x-patterns.patch maintainers-update-sirf-patterns.patch maintainers-update-ssbi-patterns.patch maintainers-update-file-pattern-for-arc-uart.patch maintainers-update-usb-ehci-platform-pattern.patch maintainers-usb-phy-update-patterns.patch maintainers-update-gre-demux-patterns.patch checkpatch-add-a-few-more-fix-corrections.patch checkpatch-check-camelcase-by-word-not-by-lval.patch checkpatch-enforce-sane-perl-version.patch checkpatch-check-for-duplicate-signatures.patch checkpatch-warn-when-using-extern-with-function-prototypes-in-h-files.patch checkpatch-fix-networking-kernel-doc-block-comment-defect.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 pktcdvd-convert-zone-macro-to-static-function-get_zone.patch pktcdvd-convert-printk-to-pr_level.patch pktcdvd-consolidate-dprintk-and-vprintk-macros.patch pktcdvd-add-struct-pktcdvd_device-to-pkt_dbg.patch pktcdvd-add-struct-pktcdvd_devicename-to-pr_err-logging-where-possible.patch pktcdvd-convert-pr_notice-to-pkt_notice.patch pktcdvd-convert-pr_info-to-pkt_info.patch pktcdvd-add-struct-pktcdvd_device-to-pkt_dump_sense.patch linux-next.patch