]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/vrr: Move compute_fixed_rr_timings()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Oct 2025 18:50:23 +0000 (21:50 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 24 Oct 2025 21:10:58 +0000 (00:10 +0300)
Relocate intel_vrr_compute_fixed_rr_timings() next to its
VRR and CMRR counterparts.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20251020185038.4272-8-ville.syrjala@linux.intel.com
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
drivers/gpu/drm/i915/display/intel_vrr.c

index 9179ad53a2e766460816f6d0c7968297085b824b..99e10943368d251c2a241fa05cbd015e7a5155f8 100644 (file)
@@ -246,6 +246,15 @@ void intel_vrr_compute_vrr_timings(struct intel_crtc_state *crtc_state,
        crtc_state->mode_flags |= I915_MODE_FLAG_VRR;
 }
 
+static
+void intel_vrr_compute_fixed_rr_timings(struct intel_crtc_state *crtc_state)
+{
+       /* For fixed rr,  vmin = vmax = flipline */
+       crtc_state->vrr.vmax = crtc_state->hw.adjusted_mode.crtc_vtotal;
+       crtc_state->vrr.vmin = crtc_state->vrr.vmax;
+       crtc_state->vrr.flipline = crtc_state->vrr.vmin;
+}
+
 static int intel_vrr_hw_value(const struct intel_crtc_state *crtc_state,
                              int value)
 {
@@ -308,15 +317,6 @@ void intel_vrr_set_fixed_rr_timings(const struct intel_crtc_state *crtc_state)
                       intel_vrr_fixed_rr_hw_flipline(crtc_state) - 1);
 }
 
-static
-void intel_vrr_compute_fixed_rr_timings(struct intel_crtc_state *crtc_state)
-{
-       /* For fixed rr,  vmin = vmax = flipline */
-       crtc_state->vrr.vmax = crtc_state->hw.adjusted_mode.crtc_vtotal;
-       crtc_state->vrr.vmin = crtc_state->vrr.vmax;
-       crtc_state->vrr.flipline = crtc_state->vrr.vmin;
-}
-
 static
 int intel_vrr_compute_vmin(struct intel_crtc_state *crtc_state)
 {