mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-05 00:04:34 -04:00
drm/msm8998: make const arrays ratio_list and band_list static
Don't populate the const read-only arrays ratio_list and band_list on the stack at run time, instead make them static. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/614156/ Link: https://lore.kernel.org/r/20240912151037.592477-1-colin.i.king@gmail.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
committed by
Dmitry Baryshkov
parent
00adf52efe
commit
71f40d32fa
@@ -157,9 +157,8 @@ static inline u32 pll_get_pll_cmp(u64 fdata, unsigned long ref_clk)
|
||||
#define HDMI_MHZ_TO_HZ ((u64)1000000)
|
||||
static int pll_get_post_div(struct hdmi_8998_post_divider *pd, u64 bclk)
|
||||
{
|
||||
u32 const ratio_list[] = {1, 2, 3, 4, 5, 6,
|
||||
9, 10, 12, 15, 25};
|
||||
u32 const band_list[] = {0, 1, 2, 3};
|
||||
static const u32 ratio_list[] = {1, 2, 3, 4, 5, 6, 9, 10, 12, 15, 25};
|
||||
static const u32 band_list[] = {0, 1, 2, 3};
|
||||
u32 const sz_ratio = ARRAY_SIZE(ratio_list);
|
||||
u32 const sz_band = ARRAY_SIZE(band_list);
|
||||
u32 const cmp_cnt = 1024;
|
||||
|
||||
Reference in New Issue
Block a user