From: Ville Syrjälä <[email protected]>

We generally use the 'old_crtc_state' in the disable functiosn to
make it clear these generally get called when the hardware is
still using the old crtc state rather than the new crtc state.
Rename the intel_vrr_transcoder_disable() 'crtc_state' parameter
to 'old_crtc_state' for consistency.

Signed-off-by: Ville Syrjälä <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_vrr.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c 
b/drivers/gpu/drm/i915/display/intel_vrr.c
index 29143dd092a8..71c5d8bf7557 100644
--- a/drivers/gpu/drm/i915/display/intel_vrr.c
+++ b/drivers/gpu/drm/i915/display/intel_vrr.c
@@ -770,15 +770,15 @@ void intel_vrr_transcoder_enable(const struct 
intel_crtc_state *crtc_state)
                intel_vrr_tg_enable(crtc_state, false);
 }
 
-void intel_vrr_transcoder_disable(const struct intel_crtc_state *crtc_state)
+void intel_vrr_transcoder_disable(const struct intel_crtc_state 
*old_crtc_state)
 {
-       struct intel_display *display = to_intel_display(crtc_state);
+       struct intel_display *display = to_intel_display(old_crtc_state);
 
-       if (!intel_vrr_possible(crtc_state))
+       if (!intel_vrr_possible(old_crtc_state))
                return;
 
        if (intel_vrr_always_use_vrr_tg(display))
-               intel_vrr_tg_disable(crtc_state);
+               intel_vrr_tg_disable(old_crtc_state);
 }
 
 bool intel_vrr_is_fixed_rr(const struct intel_crtc_state *crtc_state)
-- 
2.49.1

Reply via email to