* [PATCH] drm/sti: hdmi: make char * const array en_di static const
@ 2026-10-24 14:52 Colin Ian King
0 siblings, 0 replies; only message in thread
From: Colin Ian King @ 2026-10-24 14:52 UTC (permalink / raw)
To: Alain Volmat, Raphael Gallais-Pou, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
dri-devel
Cc: kernel-janitors, linux-kernel
Don't populate the read-only const array en_di on the stack at run
time, instead make it static const.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
drivers/gpu/drm/sti/sti_hdmi.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c
index 7ba9e0b7ba6c..63418732daaa 100644
--- a/drivers/gpu/drm/sti/sti_hdmi.c
+++ b/drivers/gpu/drm/sti/sti_hdmi.c
@@ -647,10 +647,12 @@ static void hdmi_dbg_sta(struct seq_file *s, int val)
static void hdmi_dbg_sw_di_cfg(struct seq_file *s, int val)
{
int tmp;
- char *const en_di[] = {"no transmission",
- "single transmission",
- "once every field",
- "once every frame"};
+ static const char *const en_di[] = {
+ "no transmission",
+ "single transmission",
+ "once every field",
+ "once every frame"
+ };
seq_putc(s, '\t');
tmp = (val & HDMI_IFRAME_CFG_DI_N(HDMI_IFRAME_MASK, 1));
--
2.55.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-24 14:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-24 14:52 [PATCH] drm/sti: hdmi: make char * const array en_di static const Colin Ian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®