From: Lucas De Marchi Date: Fri, 21 May 2021 00:52:09 +0000 (-0700) Subject: drm/i915/display: fix typo when returning table X-Git-Tag: v5.14-rc1~114^2~13^2~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f20785b760119dfc9e5ad569110a9b0e6b3fe35;p=thirdparty%2Fkernel%2Flinux.git drm/i915/display: fix typo when returning table Fix table returned when port_clock > 270000: drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c:752:47: error: variable 'adlp_dkl_phy_dp_ddi_trans_hbr2_hbr3' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] Initial version of the patch had it in a single table, but on second version the table got split, but we continued to reference just one of them. Fixes: ca962882268a ("drm/i915/adl_p: Define and use ADL-P specific DP translation tables") Reported-by: kernel test robot Signed-off-by: Lucas De Marchi Reviewed-by: Anusha Srivatsa Link: https://patchwork.freedesktop.org/patch/msgid/20210521005209.4058702-1-lucas.demarchi@intel.com --- diff --git a/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c b/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c index ce5d5d13b7c1a..8bfd00f49f2af 100644 --- a/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c +++ b/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c @@ -1383,7 +1383,7 @@ adlp_get_dkl_buf_trans_dp(struct intel_encoder *encoder, { if (crtc_state->port_clock > 270000) { *n_entries = ARRAY_SIZE(adlp_dkl_phy_dp_ddi_trans_hbr2_hbr3); - return adlp_dkl_phy_dp_ddi_trans_hbr; + return adlp_dkl_phy_dp_ddi_trans_hbr2_hbr3; } *n_entries = ARRAY_SIZE(adlp_dkl_phy_dp_ddi_trans_hbr);