mirror of https://gitee.com/openkylin/linux.git
drm/i915: Sort newer to older platforms.
No functional change. Just a reorg to match the preferred behavior. v2: missing else (Ville) Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190221214430.27095-1-rodrigo.vivi@intel.com
This commit is contained in:
parent
9e01d94456
commit
e0f83eb5a4
|
@ -2562,14 +2562,14 @@ static u8 intel_hdmi_ddc_pin(struct drm_i915_private *dev_priv,
|
|||
return info->alternate_ddc_pin;
|
||||
}
|
||||
|
||||
if (IS_CHERRYVIEW(dev_priv))
|
||||
ddc_pin = chv_port_to_ddc_pin(dev_priv, port);
|
||||
else if (IS_GEN9_LP(dev_priv))
|
||||
ddc_pin = bxt_port_to_ddc_pin(dev_priv, port);
|
||||
if (HAS_PCH_ICP(dev_priv))
|
||||
ddc_pin = icl_port_to_ddc_pin(dev_priv, port);
|
||||
else if (HAS_PCH_CNP(dev_priv))
|
||||
ddc_pin = cnp_port_to_ddc_pin(dev_priv, port);
|
||||
else if (HAS_PCH_ICP(dev_priv))
|
||||
ddc_pin = icl_port_to_ddc_pin(dev_priv, port);
|
||||
else if (IS_GEN9_LP(dev_priv))
|
||||
ddc_pin = bxt_port_to_ddc_pin(dev_priv, port);
|
||||
else if (IS_CHERRYVIEW(dev_priv))
|
||||
ddc_pin = chv_port_to_ddc_pin(dev_priv, port);
|
||||
else
|
||||
ddc_pin = g4x_port_to_ddc_pin(dev_priv, port);
|
||||
|
||||
|
|
Loading…
Reference in New Issue