staging: ccree: constify help string
authorGilad Ben-Yossef <gilad@benyossef.com>
Mon, 13 Nov 2017 14:45:39 +0000 (14:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:20:39 +0000 (09:20 +0100)
Make help string static const

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_sysfs.c

index 5d39f15cdb59b354e61f79842358208838128761..8d503826e42241911e720b54b816ee2fe6c1b1bb 100644 (file)
@@ -47,7 +47,7 @@ static ssize_t ssi_sys_regdump_show(struct kobject *kobj,
 static ssize_t ssi_sys_help_show(struct kobject *kobj,
                                 struct kobj_attribute *attr, char *buf)
 {
-       char *help_str[] = {
+       static const char * const help_str[] = {
                                "cat reg_dump              ", "Print several of CC register values",
                                };
        int i = 0, offset = 0;