[Intel-gfx] [PATCH 2/5] drm/i915: add wrappers to get intel connector state
Souza, Jose
jose.souza at intel.com
Fri Nov 1 00:26:11 UTC 2019
On Tue, 2019-10-29 at 18:24 -0700, Lucas De Marchi wrote:
> Wrap drm_atomic_get_old_connector_state so we can get the
> intel_digital_connector_state and make it easier to migrate to intel
> types.
Reviewed-by: José Roberto de Souza <jose.souza at intel.com>
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
> ---
> .../gpu/drm/i915/display/intel_display_types.h | 18
> ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h
> b/drivers/gpu/drm/i915/display/intel_display_types.h
> index 40184e823c84..a550abb48b3c 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_types.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_types.h
> @@ -1527,6 +1527,24 @@ intel_atomic_get_new_crtc_state(struct
> intel_atomic_state *state,
> &crtc-
> >base));
> }
>
> +static inline struct intel_digital_connector_state *
> +intel_atomic_get_new_connector_state(struct intel_atomic_state
> *state,
> + struct intel_connector *connector)
> +{
> + return to_intel_digital_connector_state(
> + drm_atomic_get_new_connector_state(&state-
> >base,
> + &connector->base));
> +}
> +
> +static inline struct intel_digital_connector_state *
> +intel_atomic_get_old_connector_state(struct intel_atomic_state
> *state,
> + struct intel_connector *connector)
> +{
> + return to_intel_digital_connector_state(
> + drm_atomic_get_old_connector_state(&state-
> >base,
> + &connector->base));
> +}
> +
> /* intel_display.c */
> static inline bool
> intel_crtc_has_type(const struct intel_crtc_state *crtc_state,
More information about the Intel-gfx
mailing list