Commit 95cef532 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: s/old_crtc_state/crtc_state/

intel_dp_enable_port() is called during the enable sequence,
so there is nothing old about the passed in crtc state.
Rename it.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200929233449.32323-3-ville.syrjala@linux.intel.comReviewed-by: default avatarImre Deak <imre.deak@intel.com>
parent 6694d2be
...@@ -3850,7 +3850,7 @@ g4x_set_link_train(struct intel_dp *intel_dp, ...@@ -3850,7 +3850,7 @@ g4x_set_link_train(struct intel_dp *intel_dp,
} }
static void intel_dp_enable_port(struct intel_dp *intel_dp, static void intel_dp_enable_port(struct intel_dp *intel_dp,
const struct intel_crtc_state *old_crtc_state) const struct intel_crtc_state *crtc_state)
{ {
struct drm_i915_private *dev_priv = dp_to_i915(intel_dp); struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
...@@ -3865,7 +3865,7 @@ static void intel_dp_enable_port(struct intel_dp *intel_dp, ...@@ -3865,7 +3865,7 @@ static void intel_dp_enable_port(struct intel_dp *intel_dp,
* fail when the power sequencer is freshly used for this port. * fail when the power sequencer is freshly used for this port.
*/ */
intel_dp->DP |= DP_PORT_EN; intel_dp->DP |= DP_PORT_EN;
if (old_crtc_state->has_audio) if (crtc_state->has_audio)
intel_dp->DP |= DP_AUDIO_OUTPUT_ENABLE; intel_dp->DP |= DP_AUDIO_OUTPUT_ENABLE;
intel_de_write(dev_priv, intel_dp->output_reg, intel_dp->DP); intel_de_write(dev_priv, intel_dp->output_reg, intel_dp->DP);
......
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