Commit 6f20785b authored by Lucas De Marchi's avatar Lucas De Marchi

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: ca962882 ("drm/i915/adl_p: Define and use ADL-P specific DP translation tables")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarAnusha Srivatsa <anusha.srivatsa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210521005209.4058702-1-lucas.demarchi@intel.com
parent 27389510
...@@ -1383,7 +1383,7 @@ adlp_get_dkl_buf_trans_dp(struct intel_encoder *encoder, ...@@ -1383,7 +1383,7 @@ adlp_get_dkl_buf_trans_dp(struct intel_encoder *encoder,
{ {
if (crtc_state->port_clock > 270000) { if (crtc_state->port_clock > 270000) {
*n_entries = ARRAY_SIZE(adlp_dkl_phy_dp_ddi_trans_hbr2_hbr3); *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); *n_entries = ARRAY_SIZE(adlp_dkl_phy_dp_ddi_trans_hbr);
......
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