| #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| #include <linux/kernel.h> |
| #include <linux/console.h> |
| #include <linux/string.h> |
| #include "console_cmdline.h" |
| char *_braille_console_setup(char **str, char **brl_options) |
| if (!memcmp(*str, "brl,", 4)) { |
| } else if (!memcmp(str, "brl=", 4)) { |
| *str = strchr(*brl_options, ','); |
| pr_err("need port name after brl=\n"); |
| _braille_register_console(struct console *console, struct console_cmdline *c) |
| console->flags |= CON_BRL; |
| rtn = braille_register_console(console, c->index, c->options, |
| _braille_unregister_console(struct console *console) |
| if (console->flags & CON_BRL) |
| return braille_unregister_console(console); |