]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/sun4i: tv: Get tcon and backend pointers from associated crtc
authorChen-Yu Tsai <wens@csie.org>
Thu, 9 Mar 2017 10:05:27 +0000 (18:05 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 9 Mar 2017 10:19:59 +0000 (11:19 +0100)
commit279156a33c33b385a78c1266ddf6ebc2d473193d
tree99e73086cd1086680b661030fa00275183de10ba
parente4cdcb7cce2949fb36a04b9848f856a107a0a2da
drm/sun4i: tv: Get tcon and backend pointers from associated crtc

The drm_encoder structure provides us with a pointer to the crtc
currently tied to the encoder. Subsequently we can extract the
tcon and backend pointers from our crtc structure, instead of
getting it directly from the sun4i_drv structure.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_tv.c