Commit cfc7109b authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Constify the crtc states in the DPLL checker

The DPLL state checker should not be modifying the crtc states,
so make the const.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231004155607.7719-4-ville.syrjala@linux.intel.comReviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 2745bdda
...@@ -4460,7 +4460,7 @@ static void ...@@ -4460,7 +4460,7 @@ static void
verify_single_dpll_state(struct drm_i915_private *i915, verify_single_dpll_state(struct drm_i915_private *i915,
struct intel_shared_dpll *pll, struct intel_shared_dpll *pll,
struct intel_crtc *crtc, 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; struct intel_dpll_hw_state dpll_hw_state;
u8 pipe_mask; u8 pipe_mask;
...@@ -4513,8 +4513,8 @@ verify_single_dpll_state(struct drm_i915_private *i915, ...@@ -4513,8 +4513,8 @@ verify_single_dpll_state(struct drm_i915_private *i915,
} }
void intel_shared_dpll_state_verify(struct intel_crtc *crtc, void intel_shared_dpll_state_verify(struct intel_crtc *crtc,
struct intel_crtc_state *old_crtc_state, const struct intel_crtc_state *old_crtc_state,
struct intel_crtc_state *new_crtc_state) const struct intel_crtc_state *new_crtc_state)
{ {
struct drm_i915_private *i915 = to_i915(crtc->base.dev); struct drm_i915_private *i915 = to_i915(crtc->base.dev);
......
...@@ -370,8 +370,8 @@ enum intel_dpll_id icl_tc_port_to_pll_id(enum tc_port tc_port); ...@@ -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); bool intel_dpll_is_combophy(enum intel_dpll_id id);
void intel_shared_dpll_state_verify(struct intel_crtc *crtc, void intel_shared_dpll_state_verify(struct intel_crtc *crtc,
struct intel_crtc_state *old_crtc_state, const struct intel_crtc_state *old_crtc_state,
struct intel_crtc_state *new_crtc_state); const struct intel_crtc_state *new_crtc_state);
void intel_shared_dpll_verify_disabled(struct drm_i915_private *i915); void intel_shared_dpll_verify_disabled(struct drm_i915_private *i915);
#endif /* _INTEL_DPLL_MGR_H_ */ #endif /* _INTEL_DPLL_MGR_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment