[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251026233432.1707-1-cristiandelgobbo87@gmail.com>
Date: Mon, 27 Oct 2025 00:34:32 +0100
From: Cristian Del Gobbo <cristiandelgobbo87@...il.com>
To: sudip.mukherjee@...il.com
Cc: teddy.wang@...iconmotion.com,
gregkh@...uxfoundation.org,
linux-fbdev@...r.kernel.org,
linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Cristian Del Gobbo <cristiandelgobbo87@...il.com>
Subject: [PATCH] staging: sm750fb: make g_fbmode0 an array of const pointers
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@...il.com>
---
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
Powered by blists - more mailing lists