Commit 332bbe70 authored by Thierry Reding's avatar Thierry Reding

drm/tegra: dc: Wire up CRTC parent of atomic state

Store a pointer to the CRTC in its atomic state to make it easy for
state handling code to get at the CRTC.
Tested-by: default avatarTomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 567a3cd1
...@@ -997,8 +997,10 @@ static void tegra_crtc_reset(struct drm_crtc *crtc) ...@@ -997,8 +997,10 @@ static void tegra_crtc_reset(struct drm_crtc *crtc)
crtc->state = NULL; crtc->state = NULL;
state = kzalloc(sizeof(*state), GFP_KERNEL); state = kzalloc(sizeof(*state), GFP_KERNEL);
if (state) if (state) {
crtc->state = &state->base; crtc->state = &state->base;
crtc->state->crtc = crtc;
}
} }
static struct drm_crtc_state * static struct drm_crtc_state *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment