On Thu, 10 Mar 2022, Ville Syrjala <ville.syrjala@xxxxxxxxxxxxxxx> wrote: > From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> > > Pass the fixed_mode as const to intel_drrs_init() since it's > not supposed to mutate the mode. > > Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> Reviewed-by: Jani Nikula <jani.nikula@xxxxxxxxx> > --- > drivers/gpu/drm/i915/display/intel_drrs.c | 2 +- > drivers/gpu/drm/i915/display/intel_drrs.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_drrs.c b/drivers/gpu/drm/i915/display/intel_drrs.c > index 146f2cf7d01a..3b871a51eb55 100644 > --- a/drivers/gpu/drm/i915/display/intel_drrs.c > +++ b/drivers/gpu/drm/i915/display/intel_drrs.c > @@ -421,7 +421,7 @@ void intel_drrs_page_flip(struct intel_atomic_state *state, > */ > struct drm_display_mode * > intel_drrs_init(struct intel_connector *connector, > - struct drm_display_mode *fixed_mode) > + const struct drm_display_mode *fixed_mode) > { > struct drm_i915_private *dev_priv = to_i915(connector->base.dev); > struct intel_encoder *encoder = connector->encoder; > diff --git a/drivers/gpu/drm/i915/display/intel_drrs.h b/drivers/gpu/drm/i915/display/intel_drrs.h > index 9ec9c447211a..6bca7692f59f 100644 > --- a/drivers/gpu/drm/i915/display/intel_drrs.h > +++ b/drivers/gpu/drm/i915/display/intel_drrs.h > @@ -31,6 +31,6 @@ void intel_drrs_compute_config(struct intel_dp *intel_dp, > struct intel_crtc_state *pipe_config, > int output_bpp, bool constant_n); > struct drm_display_mode *intel_drrs_init(struct intel_connector *connector, > - struct drm_display_mode *fixed_mode); > + const struct drm_display_mode *fixed_mode); > > #endif /* __INTEL_DRRS_H__ */ -- Jani Nikula, Intel Open Source Graphics Center