staging: speakup: Change char * array type as static const
authorEbru Akagunduz <ebru.akagunduz@gmail.com>
Sat, 4 Oct 2014 10:36:27 +0000 (13:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:12 +0000 (10:29 +0800)
This patch fixes "char * array declaration might be better as static const"
checkpatch.pl warning in kobjects.c

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/kobjects.c

index 1486147f3bacd9734f5f2e00931acc1472e7272f..b12c76de60b01a9fa6c59115db732a4a3255a446 100644 (file)
@@ -81,7 +81,7 @@ static ssize_t chars_chartab_show(struct kobject *kobj,
 static void report_char_chartab_status(int reset, int received, int used,
        int rejected, int do_characters)
 {
-       char *object_type[] = {
+       static char const *object_type[] = {
                "character class entries",
                "character descriptions",
        };