drm/i915: Introduce intel_crtc_state_reset()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 7 Nov 2019 14:24:16 +0000 (16:24 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 Dec 2019 14:47:34 +0000 (16:47 +0200)
commit979e94c1d64ae961016f5da2118dd46c87826d9e
tree80d8c7fedff71179e1b16e6bc3bfc86e693d9493
parent6643453987c44d5d37709c3021d21d0e3bb4d5c4
drm/i915: Introduce intel_crtc_state_reset()

We have a few places where we want to reset a crtc state to its
default values. Let's add a helper for that. We'll need the new
__drm_atomic_helper_crtc_state_reset() helper for this to allow
us to just reset the state itself without clobbering the
crtc->state pointer.

And while at it let's zero out the whole thing, except a few
choice member which we'll mark as "invalid". And thanks to this
we can now nuke intel_crtc_init_scalers().

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191107142417.11107-4-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_display.c