drm/sun4i: Pass pointer for underlying backend into layer init
authorChen-Yu Tsai <wens@csie.org>
Thu, 9 Mar 2017 10:05:29 +0000 (18:05 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 9 Mar 2017 10:22:22 +0000 (11:22 +0100)
commita0a68fb6872f545acd49035ea17c52a9f30d07dc
treeaf23b9693e15d186fc1c9608053c75d4987b0e29
parent18c3b300837b864e875d23f22eef5b7acefeccf1
drm/sun4i: Pass pointer for underlying backend into layer init

sun4i_layer only controls the backend hardware block of the display
pipeline.

Pass pointers to the underlying backend in the layer init function,
instead of trying to fetch it from the drm_device structure. This
avoids the headache of trying to figure out which device the layers
actually belong to.

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_layer.c
drivers/gpu/drm/sun4i/sun4i_layer.h