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

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20250515071801.2221120-13-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_dpll.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.h

index 27e1cce02faa875029c4847a0c364ec275602d68..c894e4d0d4881c18a4df57952b5a5241a81f2cc3 100644 (file)
@@ -6436,7 +6436,7 @@ int intel_atomic_check(struct drm_device *dev,
 
                any_ms = true;
 
-               intel_release_dplls(state, crtc);
+               intel_dpll_release(state, crtc);
        }
 
        if (any_ms && !check_digital_port_conflicts(state)) {
index 4f8be9ac9f8afe03c037b5d0b86febbc989d046e..83147a578c09fa8502e9fc6cfb3c28cf8fb6a9df 100644 (file)
@@ -1190,7 +1190,7 @@ static int hsw_crtc_get_dpll(struct intel_atomic_state *state,
            intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI))
                return 0;
 
-       return intel_reserve_dplls(state, crtc, encoder);
+       return intel_dpll_reserve(state, crtc, encoder);
 }
 
 static int dg2_crtc_compute_clock(struct intel_atomic_state *state,
@@ -1415,7 +1415,7 @@ static int ilk_crtc_get_dpll(struct intel_atomic_state *state,
        if (!crtc_state->has_pch_encoder)
                return 0;
 
-       return intel_reserve_dplls(state, crtc, NULL);
+       return intel_dpll_reserve(state, crtc, NULL);
 }
 
 static u32 vlv_dpll(const struct intel_crtc_state *crtc_state)
index db15d4f0328c41ec3ffaed3892f1617d08aaec00..6f56a805924241a2fcf490ef2a711caa8a397179 100644 (file)
@@ -56,8 +56,8 @@
  * users of a PLL are tracked and that tracking is integrated with the atomic
  * modset interface. During an atomic operation, required PLLs can be reserved
  * for a given CRTC and encoder configuration by calling
- * intel_reserve_dplls() and previously reserved PLLs can be released
- * with intel_release_dplls().
+ * intel_dpll_reserve() and previously reserved PLLs can be released
+ * with intel_dpll_release().
  * Changes to the users are first staged in the atomic state, and then made
  * effective by calling intel_dpll_swap_state() during the atomic
  * commit phase.
@@ -4388,7 +4388,7 @@ int intel_compute_dplls(struct intel_atomic_state *state,
 }
 
 /**
- * intel_reserve_dplls - reserve DPLLs for CRTC and encoder combination
+ * intel_dpll_reserve - reserve DPLLs for CRTC and encoder combination
  * @state: atomic state
  * @crtc: CRTC to reserve DPLLs for
  * @encoder: encoder
@@ -4401,15 +4401,15 @@ int intel_compute_dplls(struct intel_atomic_state *state,
  * calling intel_dpll_swap_state().
  *
  * The reserved DPLLs should be released by calling
- * intel_release_dplls().
+ * intel_dpll_release().
  *
  * Returns:
  * 0 if all required DPLLs were successfully reserved,
  * negative error code otherwise.
  */
-int intel_reserve_dplls(struct intel_atomic_state *state,
-                       struct intel_crtc *crtc,
-                       struct intel_encoder *encoder)
+int intel_dpll_reserve(struct intel_atomic_state *state,
+                      struct intel_crtc *crtc,
+                      struct intel_encoder *encoder)
 {
        struct intel_display *display = to_intel_display(state);
        const struct intel_dpll_mgr *dpll_mgr = display->dpll.mgr;
@@ -4421,18 +4421,18 @@ int intel_reserve_dplls(struct intel_atomic_state *state,
 }
 
 /**
- * intel_release_dplls - end use of DPLLs by CRTC in atomic state
+ * intel_dpll_release - end use of DPLLs by CRTC in atomic state
  * @state: atomic state
  * @crtc: crtc from which the DPLLs are to be released
  *
- * This function releases all DPLLs reserved by intel_reserve_dplls()
+ * This function releases all DPLLs reserved by intel_dpll_reserve()
  * from the current atomic commit @state and the old @crtc atomic state.
  *
  * The new configuration in the atomic commit @state is made effective by
  * calling intel_dpll_swap_state().
  */
-void intel_release_dplls(struct intel_atomic_state *state,
-                        struct intel_crtc *crtc)
+void intel_dpll_release(struct intel_atomic_state *state,
+                       struct intel_crtc *crtc)
 {
        struct intel_display *display = to_intel_display(state);
        const struct intel_dpll_mgr *dpll_mgr = display->dpll.mgr;
@@ -4440,7 +4440,7 @@ void intel_release_dplls(struct intel_atomic_state *state,
        /*
         * FIXME: this function is called for every platform having a
         * compute_clock hook, even though the platform doesn't yet support
-        * the DPLL framework and intel_reserve_dplls() is not
+        * the DPLL framework and intel_dpll_reserve() is not
         * called on those.
         */
        if (!dpll_mgr)
@@ -4456,7 +4456,7 @@ void intel_release_dplls(struct intel_atomic_state *state,
  * @encoder: encoder determining the type of port DPLL
  *
  * Update the active DPLL for the given @crtc/@encoder in @crtc's atomic state,
- * from the port DPLLs reserved previously by intel_reserve_dplls(). The
+ * from the port DPLLs reserved previously by intel_dpll_reserve(). The
  * DPLL selected will be based on the current mode of the encoder's port.
  */
 void intel_update_active_dpll(struct intel_atomic_state *state,
index f8ba7b52a7adc61e114e94578cafbe363b84f6fd..9c8a91b9639c0edbff7d69ec015eef611b390e84 100644 (file)
@@ -399,11 +399,11 @@ void assert_dpll(struct intel_display *display,
 int intel_compute_dplls(struct intel_atomic_state *state,
                        struct intel_crtc *crtc,
                        struct intel_encoder *encoder);
-int intel_reserve_dplls(struct intel_atomic_state *state,
-                       struct intel_crtc *crtc,
-                       struct intel_encoder *encoder);
-void intel_release_dplls(struct intel_atomic_state *state,
-                        struct intel_crtc *crtc);
+int intel_dpll_reserve(struct intel_atomic_state *state,
+                      struct intel_crtc *crtc,
+                      struct intel_encoder *encoder);
+void intel_dpll_release(struct intel_atomic_state *state,
+                       struct intel_crtc *crtc);
 void intel_dpll_crtc_put(const struct intel_crtc *crtc,
                         const struct intel_dpll *pll,
                         struct intel_dpll_state *shared_dpll_state);