Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -997,8 +997,10 @@ static void tegra_crtc_reset(struct drm_crtc *crtc)
	crtc->state = NULL;

	state = kzalloc(sizeof(*state), GFP_KERNEL);
	if (state)
	if (state) {
		crtc->state = &state->base;
		crtc->state->crtc = crtc;
	}
}

static struct drm_crtc_state *