Commit 76a791fa authored by Colin Ian King's avatar Colin Ian King Committed by Jani Nikula

drm/i915/dp: Make read-only array bw_gbps static const

Don't populate the read-only array bw_gbps on the stack at run time,
instead make it static const.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240722153937.574819-1-colin.i.king@gmail.com
parent bc3ca4d9
...@@ -3420,7 +3420,7 @@ static void intel_dp_get_pcon_dsc_cap(struct intel_dp *intel_dp) ...@@ -3420,7 +3420,7 @@ static void intel_dp_get_pcon_dsc_cap(struct intel_dp *intel_dp)
static int intel_dp_pcon_get_frl_mask(u8 frl_bw_mask) static int intel_dp_pcon_get_frl_mask(u8 frl_bw_mask)
{ {
int bw_gbps[] = {9, 18, 24, 32, 40, 48}; static const int bw_gbps[] = {9, 18, 24, 32, 40, 48};
int i; int i;
for (i = ARRAY_SIZE(bw_gbps) - 1; i >= 0; i--) { for (i = ARRAY_SIZE(bw_gbps) - 1; i >= 0; i--) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment