Commit 5d81c298 authored by Jouni Högander's avatar Jouni Högander
Browse files

drm/i915/alpm: Make crtc_state as const in intel_alpm_compute_params



Intel_alpm_compute_params doesn't change crtc_state. Let's convert it as
const.

Signed-off-by: default avatarJouni Högander <jouni.hogander@intel.com>
Reviewed-by: default avatarAnimesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240619062131.4021196-8-jouni.hogander@intel.com
parent 0bc96a4b
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -135,8 +135,9 @@ static int _lnl_compute_aux_less_wake_time(int port_clock)
			    t1 + tcds, 1000);
}

static int _lnl_compute_aux_less_alpm_params(struct intel_dp *intel_dp,
					     struct intel_crtc_state *crtc_state)
static int
_lnl_compute_aux_less_alpm_params(struct intel_dp *intel_dp,
				  const struct intel_crtc_state *crtc_state)
{
	struct drm_i915_private *i915 = dp_to_i915(intel_dp);
	int aux_less_wake_time, aux_less_wake_lines, silence_period,
@@ -168,7 +169,7 @@ static int _lnl_compute_aux_less_alpm_params(struct intel_dp *intel_dp,
}

static bool _lnl_compute_alpm_params(struct intel_dp *intel_dp,
				     struct intel_crtc_state *crtc_state)
				     const struct intel_crtc_state *crtc_state)
{
	struct drm_i915_private *i915 = dp_to_i915(intel_dp);
	int check_entry_lines;
@@ -220,7 +221,7 @@ static int io_buffer_wake_time(const struct intel_crtc_state *crtc_state)
}

bool intel_alpm_compute_params(struct intel_dp *intel_dp,
				      struct intel_crtc_state *crtc_state)
			       const struct intel_crtc_state *crtc_state)
{
	struct drm_i915_private *i915 = dp_to_i915(intel_dp);
	int io_wake_lines, io_wake_time, fast_wake_lines, fast_wake_time;
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ struct intel_connector;

void intel_alpm_init_dpcd(struct intel_dp *intel_dp);
bool intel_alpm_compute_params(struct intel_dp *intel_dp,
			       struct intel_crtc_state *crtc_state);
			       const struct intel_crtc_state *crtc_state);
void intel_alpm_lobf_compute_config(struct intel_dp *intel_dp,
				    struct intel_crtc_state *crtc_state,
				    struct drm_connector_state *conn_state);