Skip to content

Commit cfc7109

Browse files
committed
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: 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>
1 parent 2745bdd commit cfc7109

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/gpu/drm/i915/display/intel_dpll_mgr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4460,7 +4460,7 @@ static void
44604460
verify_single_dpll_state(struct drm_i915_private *i915,
44614461
struct intel_shared_dpll *pll,
44624462
struct intel_crtc *crtc,
4463-
struct intel_crtc_state *new_crtc_state)
4463+
const struct intel_crtc_state *new_crtc_state)
44644464
{
44654465
struct intel_dpll_hw_state dpll_hw_state;
44664466
u8 pipe_mask;
@@ -4513,8 +4513,8 @@ verify_single_dpll_state(struct drm_i915_private *i915,
45134513
}
45144514

45154515
void intel_shared_dpll_state_verify(struct intel_crtc *crtc,
4516-
struct intel_crtc_state *old_crtc_state,
4517-
struct intel_crtc_state *new_crtc_state)
4516+
const struct intel_crtc_state *old_crtc_state,
4517+
const struct intel_crtc_state *new_crtc_state)
45184518
{
45194519
struct drm_i915_private *i915 = to_i915(crtc->base.dev);
45204520

drivers/gpu/drm/i915/display/intel_dpll_mgr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ enum intel_dpll_id icl_tc_port_to_pll_id(enum tc_port tc_port);
370370
bool intel_dpll_is_combophy(enum intel_dpll_id id);
371371

372372
void intel_shared_dpll_state_verify(struct intel_crtc *crtc,
373-
struct intel_crtc_state *old_crtc_state,
374-
struct intel_crtc_state *new_crtc_state);
373+
const struct intel_crtc_state *old_crtc_state,
374+
const struct intel_crtc_state *new_crtc_state);
375375
void intel_shared_dpll_verify_disabled(struct drm_i915_private *i915);
376376

377377
#endif /* _INTEL_DPLL_MGR_H_ */

0 commit comments

Comments
 (0)