1 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
3 #include <linux/kernel.h>
4 #include <linux/console.h>
5 #include <linux/errno.h>
6 #include <linux/string.h>
8 #include "console_cmdline.h"
11 int _braille_console_setup(char **str
, char **brl_options
)
13 if (!strncmp(*str
, "brl,", 4)) {
16 } else if (!strncmp(*str
, "brl=", 4)) {
17 *brl_options
= *str
+ 4;
18 *str
= strchr(*brl_options
, ',');
20 pr_err("need port name after brl=\n");
30 _braille_register_console(struct console
*console
, struct console_cmdline
*c
)
35 console
->flags
|= CON_BRL
;
36 rtn
= braille_register_console(console
, c
->index
, c
->options
,
44 _braille_unregister_console(struct console
*console
)
46 if (console
->flags
& CON_BRL
)
47 return braille_unregister_console(console
);