1 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
3 #include <linux/kernel.h>
4 #include <linux/console.h>
5 #include <linux/string.h>
7 #include "console_cmdline.h"
10 char *_braille_console_setup(char **str, char **brl_options)
12 if (!memcmp(*str, "brl,", 4)) {
15 } else if (!memcmp(str, "brl=", 4)) {
16 *brl_options = *str + 4;
17 *str = strchr(*brl_options, ',');
19 pr_err("need port name after brl=\n");
29 _braille_register_console(struct console *console, struct console_cmdline *c)
34 console->flags |= CON_BRL;
35 rtn = braille_register_console(console, c->index, c->options,
43 _braille_unregister_console(struct console *console)
45 if (console->flags & CON_BRL)
46 return braille_unregister_console(console);