> -----Original Message----- > From: Intel-gfx <intel-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of Jouni > Högander > Sent: Thursday, 9 January 2025 12.36 > To: intel-gfx@xxxxxxxxxxxxxxxxxxxxx; intel-xe@xxxxxxxxxxxxxxxxxxxxx > Cc: Hogander, Jouni <jouni.hogander@xxxxxxxxx> > Subject: [PATCH 3/4] drm/i915/psr: Make intel_psr_enable_sink as local static > function > > Intel_psr_enable_sink is not used outside intel_psr.c. Convert it as local static > function. > Reviewed-by: Mika Kahola <mika.kahola@xxxxxxxxx> > Signed-off-by: Jouni Högander <jouni.hogander@xxxxxxxxx> > --- > drivers/gpu/drm/i915/display/intel_psr.c | 4 ++-- > drivers/gpu/drm/i915/display/intel_psr.h | 2 -- > 2 files changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_psr.c > b/drivers/gpu/drm/i915/display/intel_psr.c > index e592bc01c7fb..f969abc56256 100644 > --- a/drivers/gpu/drm/i915/display/intel_psr.c > +++ b/drivers/gpu/drm/i915/display/intel_psr.c > @@ -814,8 +814,8 @@ static void intel_psr_enable_sink_alpm(struct intel_dp > *intel_dp, > drm_dp_dpcd_writeb(&intel_dp->aux, DP_RECEIVER_ALPM_CONFIG, > val); } > > -void intel_psr_enable_sink(struct intel_dp *intel_dp, > - const struct intel_crtc_state *crtc_state) > +static void intel_psr_enable_sink(struct intel_dp *intel_dp, > + const struct intel_crtc_state *crtc_state) > { > intel_psr_enable_sink_alpm(intel_dp, crtc_state); > > diff --git a/drivers/gpu/drm/i915/display/intel_psr.h > b/drivers/gpu/drm/i915/display/intel_psr.h > index 3b2643b83e06..5f1671d02d76 100644 > --- a/drivers/gpu/drm/i915/display/intel_psr.h > +++ b/drivers/gpu/drm/i915/display/intel_psr.h > @@ -28,8 +28,6 @@ bool intel_encoder_can_psr(struct intel_encoder *encoder); > bool intel_psr_needs_aux_io_power(struct intel_encoder *encoder, > const struct intel_crtc_state *crtc_state); void > intel_psr_init_dpcd(struct intel_dp *intel_dp); -void intel_psr_enable_sink(struct > intel_dp *intel_dp, > - const struct intel_crtc_state *crtc_state); > void intel_psr_panel_replay_enable_sink(struct intel_dp *intel_dp); void > intel_psr_pre_plane_update(struct intel_atomic_state *state, > struct intel_crtc *crtc); > -- > 2.34.1