[Intel-gfx] [PATCH 1/9] drm/i915/display: move needs_modeset to an inline in header
Ville Syrjälä
ville.syrjala at linux.intel.com
Thu Dec 10 15:08:15 UTC 2020
On Thu, Dec 10, 2020 at 02:17:47PM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This function is going to be used in a later change, so clean it
> up first before moving it.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 78 +++++++++----------
> .../drm/i915/display/intel_display_types.h | 6 ++
> 2 files changed, 42 insertions(+), 42 deletions(-)
>
<snip>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
> index 5bc5bfbc4551..8c4afad68a44 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_types.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_types.h
> @@ -1777,6 +1777,12 @@ intel_crtc_has_dp_encoder(const struct intel_crtc_state *crtc_state)
> (1 << INTEL_OUTPUT_EDP));
> }
>
> +static inline bool
> +intel_crtc_needs_modeset(const struct intel_crtc_state *state)
s/state/crtc_state/ please.
With that
Reviewed-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> +{
> + return drm_atomic_crtc_needs_modeset(&state->uapi);
> +}
> +
> static inline void
> intel_wait_for_vblank(struct drm_i915_private *dev_priv, enum pipe pipe)
> {
> --
> 2.27.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel
More information about the Intel-gfx
mailing list