|
|
@@ -2,12 +2,13 @@
|
|
|
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/console.h>
|
|
|
+#include <linux/errno.h>
|
|
|
#include <linux/string.h>
|
|
|
|
|
|
#include "console_cmdline.h"
|
|
|
#include "braille.h"
|
|
|
|
|
|
-char *_braille_console_setup(char **str, char **brl_options)
|
|
|
+int _braille_console_setup(char **str, char **brl_options)
|
|
|
{
|
|
|
if (!strncmp(*str, "brl,", 4)) {
|
|
|
*brl_options = "";
|
|
|
@@ -15,14 +16,14 @@ char *_braille_console_setup(char **str, char **brl_options)
|
|
|
} else if (!strncmp(*str, "brl=", 4)) {
|
|
|
*brl_options = *str + 4;
|
|
|
*str = strchr(*brl_options, ',');
|
|
|
- if (!*str)
|
|
|
+ if (!*str) {
|
|
|
pr_err("need port name after brl=\n");
|
|
|
- else
|
|
|
- *((*str)++) = 0;
|
|
|
- } else
|
|
|
- return NULL;
|
|
|
+ return -EINVAL;
|
|
|
+ }
|
|
|
+ *((*str)++) = 0;
|
|
|
+ }
|
|
|
|
|
|
- return *str;
|
|
|
+ return 0;
|
|
|
}
|
|
|
|
|
|
int
|