[PATCH][next] drm/i915/display: make read-only array rates static const

From: Colin Ian King

Date: Mon Jun 08 2026 - 08:27:39 EST


Don't populate the read-only array rates the stack at run time,
instead make it static const.

Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx>
---
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 9076c2b176ec..351a62654a8d 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++)
--
2.53.0