Skip to contentSkip to conversation

staging: sm750fb: make g_fbmode array const

PATCH New Arnav Kapoor 1 participant 1 message Jun 21

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

PATCH 1/1 staging: sm750fb: make g_fbmode array const

From: arnavk23 <[email protected]>

checkpatch complains that a static const char * array should probably be static const char * const.

---
 drivers/staging/sm750fb/sm750.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/sm750fb/sm750.c +1 -1
index 9f3e3d37e..19c3da654 100644
@@ -33,7 +33,7 @@
 static int g_hwcursor = 1;
 static int g_noaccel;
 static int g_nomtrr;
-static const char *g_fbmode[] = {NULL, NULL};
+static const char * const g_fbmode[] = {NULL, NULL};
 static const char *g_def_fbmode = "1024x768-32@60";
 static char *g_settings;
 static int g_dualview;
Signature · 1 line
2.53.0