From fd3ccb032d34dddf0dfc3e9409f59c7bc54630eb Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Mon, 8 Jun 2026 13:24:27 +0100 Subject: drm/i915/display: make read-only array rates static const Don't populate the read-only array rates the stack at run time, instead make it static const. Signed-off-by: Colin Ian King Link: https://patch.msgid.link/20260608122427.48375-1-colin.i.king@gmail.com Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/intel_hdmi.c index b9d11fb8559d..beca0ff5a5b4 100644 --- a/drivers/gpu/drm/i915/display/intel_hdmi.c +++ b/drivers/gpu/drm/i915/display/intel_hdmi.c @@ -71,7 +71,7 @@ bool intel_hdmi_is_frl(u32 clock) { - u32 rates[] = { 300000, 600000, 800000, 1000000, 1200000 }; + static const u32 rates[] = { 300000, 600000, 800000, 1000000, 1200000 }; int i; for (i = 0; i < ARRAY_SIZE(rates); i++) -- cgit v1.2.3