Skip to content

Commit

Permalink
drm/i915: Constify the crtc states in the DPLL checker
Browse files Browse the repository at this point in the history
The DPLL state checker should not be modifying the crtc states,
so make the const.

Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Jani Nikula <[email protected]>
  • Loading branch information
vsyrjala committed Oct 6, 2023
1 parent 2745bdd commit cfc7109
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/i915/display/intel_dpll_mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions drivers/gpu/drm/i915/display/intel_dpll_mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit cfc7109

Please sign in to comment.