diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-07-22 18:39:37 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2024-07-24 12:41:47 +0300 |
commit | 76a791fa0926e504f262310cbd0c8f1a60e67ae8 (patch) | |
tree | b04d2a6918dd9fc6f6402b6a434ccb7a6dc07405 | |
parent | bc3ca4d94369838c3b6668a183467d4a69a5a482 (diff) | |
download | linux-76a791fa0926e504f262310cbd0c8f1a60e67ae8.tar.xz |
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: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240722153937.574819-1-colin.i.king@gmail.com
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_dp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 1e43e32e0519..116041f3886a 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -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) { - int bw_gbps[] = {9, 18, 24, 32, 40, 48}; + static const int bw_gbps[] = {9, 18, 24, 32, 40, 48}; int i; for (i = ARRAY_SIZE(bw_gbps) - 1; i >= 0; i--) { |