]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/sun4i: Pass pointers for associated backend and tcon into crtc init
authorChen-Yu Tsai <wens@csie.org>
Thu, 9 Mar 2017 10:05:28 +0000 (18:05 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 9 Mar 2017 10:21:52 +0000 (11:21 +0100)
commit18c3b300837b864e875d23f22eef5b7acefeccf1
tree4b95d4cb65f916a521fcad9cf26b2f12418dabad
parent279156a33c33b385a78c1266ddf6ebc2d473193d
drm/sun4i: Pass pointers for associated backend and tcon into crtc init

sun4i_crtc controls the backend and tcon hardware blocks of the display
pipeline.

Pass pointers to the underlying devices into the crtc init function,
instead of trying to fetch them from the drm_device structure. This
avoids the headache of trying to figure out which devices the crtc
is actually associated with.

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