[PATCH 1/2] staging: sm750fb: make g_fbmode const to fix checkpatch warning
From: contectforbusiness
Date: Fri Sep 04 2026 - 01:57:18 EST
checkpatch reports:
WARNING: static const char * array should probably be
static const char * const
g_fbmode is never modified, so make the pointers const as well.
This quiets the warning and makes the intent clearer.
No functional change.
Signed-off-by: Vaibhav <contectforbusiness@xxxxxxxxx>
---
drivers/staging/sm750fb/sm750.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index 039e2033f..f731ef53e 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -12,7 +12,7 @@
static int g_hwcursor = 1;
static int g_noaccel __ro_after_init;
static int g_nomtrr __ro_after_init;
-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 __ro_after_init;