]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915: Constify the crtc states in the DPLL checker
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 Oct 2023 15:55:58 +0000 (18:55 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 6 Oct 2023 20:59:00 +0000 (23:59 +0300)
The DPLL state checker should not be modifying the crtc states,
so make the const.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231004155607.7719-4-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.h

index 86cdd8c9f2d85adf85a2592093fde690cfd339b9..237cfc8780a4326de42f9fc39dcde4bf85f7b0e0 100644 (file)
@@ -4460,7 +4460,7 @@ static void
 verify_single_dpll_state(struct drm_i915_private *i915,
                         struct intel_shared_dpll *pll,
                         struct intel_crtc *crtc,
-                        struct intel_crtc_state *new_crtc_state)
+                        const struct intel_crtc_state *new_crtc_state)
 {
        struct intel_dpll_hw_state dpll_hw_state;
        u8 pipe_mask;
@@ -4513,8 +4513,8 @@ verify_single_dpll_state(struct drm_i915_private *i915,
 }
 
 void intel_shared_dpll_state_verify(struct intel_crtc *crtc,
-                                   struct intel_crtc_state *old_crtc_state,
-                                   struct intel_crtc_state *new_crtc_state)
+                                   const struct intel_crtc_state *old_crtc_state,
+                                   const struct intel_crtc_state *new_crtc_state)
 {
        struct drm_i915_private *i915 = to_i915(crtc->base.dev);
 
index 75d2ff977b4e8d98bfbd016656daedbfee3981b2..e184680606e966f98cd4924d5872010a1e3327f1 100644 (file)
@@ -370,8 +370,8 @@ enum intel_dpll_id icl_tc_port_to_pll_id(enum tc_port tc_port);
 bool intel_dpll_is_combophy(enum intel_dpll_id id);
 
 void intel_shared_dpll_state_verify(struct intel_crtc *crtc,
-                                   struct intel_crtc_state *old_crtc_state,
-                                   struct intel_crtc_state *new_crtc_state);
+                                   const struct intel_crtc_state *old_crtc_state,
+                                   const struct intel_crtc_state *new_crtc_state);
 void intel_shared_dpll_verify_disabled(struct drm_i915_private *i915);
 
 #endif /* _INTEL_DPLL_MGR_H_ */