[PATCH] staging: sm750fb: make g_fbmode0 an array of const pointers
From: Cristian Del Gobbo
Date: Sun Oct 26 2025 - 19:35:08 EST
Change g_fbmode0 from 'static const char *' to 'static const char * const'
so that both the array and its elements are const. This addresses a
checkpatch warning and matches intended usage.
No functional change intended.
Signed-off-by: Cristian Del Gobbo <cristiandelgobbo87@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 3659af7e519d..ceb89ee99ce0 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -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;
--
2.34.1