diff options
| author | Colin Ian King <colin.i.king@gmail.com> | 2024-08-22 23:50:47 +0300 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2024-08-29 21:14:29 +0300 |
| commit | e75356ef5baef69e9f577023c453d91a902dc082 (patch) | |
| tree | 8288ed26a96de529d29ef53c99276d1a19d1d7cb | |
| parent | 3d70eb8e60c6d009c988c8e696cb68c77ff59628 (diff) | |
| download | linux-e75356ef5baef69e9f577023c453d91a902dc082.tar.xz | |
drm/tegra: hdmi: Make read-only const array freqs static
Don't populate the const read-only array freqs on the stack at run time,
instead make it static.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240822205047.642845-1-colin.i.king@gmail.com
| -rw-r--r-- | drivers/gpu/drm/tegra/hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
