* [PATCH] staging: media: atomisp: mark pmic_name array as const
@ 2026-05-06 19:03 Shyam Sunder Reddy Padira
0 siblings, 0 replies; only message in thread
From: Shyam Sunder Reddy Padira @ 2026-05-06 19:03 UTC (permalink / raw)
To: hansg, mchehab, andy, gregkh
Cc: sakari.ailus, linux-media, linux-kernel, linux-staging,
Shyam Sunder Reddy Padira
The pmic_name array is not modified after initialization and is only used
for used for lookup. Mark it as 'static const char *const' to place it in
read-only memory and prevent accidental modification.
No functional change.
Signed-off-by: Shyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com>
---
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c b/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
index 4026e98c5845..d32d98720455 100644
--- a/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
+++ b/drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c
@@ -109,7 +109,7 @@ static enum {
PMIC_CRYSTALCOVE
} pmic_id;
-static const char *pmic_name[] = {
+static const char *const pmic_name[] = {
[PMIC_UNSET] = "ACPI device PM",
[PMIC_REGULATOR] = "regulator driver",
[PMIC_AXP] = "XPower AXP288 PMIC",
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-06 19:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06 19:03 [PATCH] staging: media: atomisp: mark pmic_name array as const Shyam Sunder Reddy Padira
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox