Skip to contentSkip to conversation

staging:ccree Fix char * array declaration

PATCH New Janani Sankara Babu 1 participant 1 message Sep 21, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging:ccree Fix char * array declaration

This patch solves the following warning shown by the checkpatch script
Warning: char * array declaration might be better as static const

---
 drivers/staging/ccree/ssi_sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/ccree/ssi_sysfs.c +1 -1
index dbcd163..87cef46 100644
@@ -300,7 +300,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 *help_str[] = {
 				"cat reg_dump              ", "Print several of CC register values",
 		#if defined CC_CYCLE_COUNT
 				"cat stats_host            ", "Print host statistics",
Signature · 1 line
1.9.1