[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240822205047.642845-1-colin.i.king@gmail.com>
Date: Thu, 22 Aug 2024 21:50:47 +0100
From: Colin Ian King <colin.i.king@...il.com>
To: Thierry Reding <thierry.reding@...il.com>,
Mikko Perttunen <mperttunen@...dia.com>,
David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>,
Jonathan Hunter <jonathanh@...dia.com>,
dri-devel@...ts.freedesktop.org,
linux-tegra@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH][next] drm/tegra: hdmi: make read-only const array possible_nvram_sizes static
Don't populate the const read-only array possible_nvram_sizes on the
stack at run time, instead make it static.
Signed-off-by: Colin Ian King <colin.i.king@...il.com>
---
drivers/gpu/drm/tegra/hdmi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c
index 09987e372e3e..6bf2dae82ca0 100644
--- a/drivers/gpu/drm/tegra/hdmi.c
+++ b/drivers/gpu/drm/tegra/hdmi.c
@@ -434,7 +434,7 @@ tegra_hdmi_get_audio_config(unsigned int audio_freq, unsigned int pix_clock,
static void tegra_hdmi_setup_audio_fs_tables(struct tegra_hdmi *hdmi)
{
- const unsigned int freqs[] = {
+ static const unsigned int freqs[] = {
32000, 44100, 48000, 88200, 96000, 176400, 192000
};
unsigned int i;
--
2.39.2
Powered by blists - more mailing lists