]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/dpll: Rename intel_unreference_dpll_crtc
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 15 May 2025 07:17:57 +0000 (12:47 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 20 May 2025 08:04:19 +0000 (13:34 +0530)
Rename intel_unreference_dpll_crtc to intel_dpll_crtc_put
in an effort to keep names of exported functions start with the filename.

--v2
-Make the new name more sensible [Jani]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Link: https://lore.kernel.org/r/20250515071801.2221120-11-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.h
drivers/gpu/drm/i915/display/intel_modeset_setup.c

index 2b592423e1d1501d12ae3ac38c37ffd0cf8f2d26..1265bc4b4307a027b6dcd73ad87494814d73ce6b 100644 (file)
@@ -451,7 +451,7 @@ intel_reference_dpll(struct intel_atomic_state *state,
 }
 
 /**
- * intel_unreference_dpll_crtc - Drop a DPLL reference for a CRTC
+ * intel_dpll_crtc_put - Drop a DPLL reference for a CRTC
  * @crtc: CRTC on which behalf the reference is dropped
  * @pll: DPLL for which the reference is dropped
  * @dpll_state: the DPLL atomic state in which the reference is tracked
@@ -459,9 +459,9 @@ intel_reference_dpll(struct intel_atomic_state *state,
  * Drop a reference for @pll tracking the end of use of it by @crtc.
  */
 void
-intel_unreference_dpll_crtc(const struct intel_crtc *crtc,
-                           const struct intel_dpll *pll,
-                           struct intel_dpll_state *dpll_state)
+intel_dpll_crtc_put(const struct intel_crtc *crtc,
+                   const struct intel_dpll *pll,
+                   struct intel_dpll_state *dpll_state)
 {
        struct intel_display *display = to_intel_display(crtc);
 
@@ -481,7 +481,7 @@ static void intel_unreference_dpll(struct intel_atomic_state *state,
 
        dpll_state = intel_atomic_get_dpll_state(&state->base);
 
-       intel_unreference_dpll_crtc(crtc, pll, &dpll_state[pll->index]);
+       intel_dpll_crtc_put(crtc, pll, &dpll_state[pll->index]);
 }
 
 static void intel_put_dpll(struct intel_atomic_state *state,
index 88a81c850cf0650e35afca90b46e8d419a672bb8..f8ba7b52a7adc61e114e94578cafbe363b84f6fd 100644 (file)
@@ -404,9 +404,9 @@ int intel_reserve_dplls(struct intel_atomic_state *state,
                        struct intel_encoder *encoder);
 void intel_release_dplls(struct intel_atomic_state *state,
                         struct intel_crtc *crtc);
-void intel_unreference_dpll_crtc(const struct intel_crtc *crtc,
-                                const struct intel_dpll *pll,
-                                struct intel_dpll_state *shared_dpll_state);
+void intel_dpll_crtc_put(const struct intel_crtc *crtc,
+                        const struct intel_dpll *pll,
+                        struct intel_dpll_state *shared_dpll_state);
 void icl_set_active_port_dpll(struct intel_crtc_state *crtc_state,
                              enum icl_port_dpll_id port_dpll_id);
 void intel_update_active_dpll(struct intel_atomic_state *state,
index ed4f305e0d3eacf8f19e349c0877380e3e1f3ed9..22c5302e37982963915951ad9f2e05c13a5faf77 100644 (file)
@@ -93,9 +93,9 @@ static void intel_crtc_disable_noatomic_begin(struct intel_crtc *crtc,
        crtc->base.enabled = false;
 
        if (crtc_state->intel_dpll)
-               intel_unreference_dpll_crtc(crtc,
-                                           crtc_state->intel_dpll,
-                                           &crtc_state->intel_dpll->state);
+               intel_dpll_crtc_put(crtc,
+                                   crtc_state->intel_dpll,
+                                   &crtc_state->intel_dpll->state);
 }
 
 static void set_encoder_for_connector(struct intel_connector *connector,