summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sun4i/sun4i_layer.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2017-03-09 18:05:29 +0800
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-03-09 11:22:22 +0100
commita0a68fb6872f545acd49035ea17c52a9f30d07dc (patch)
treeaf23b9693e15d186fc1c9608053c75d4987b0e29 /drivers/gpu/drm/sun4i/sun4i_layer.h
parent18c3b300837b864e875d23f22eef5b7acefeccf1 (diff)
downloadop-kernel-dev-a0a68fb6872f545acd49035ea17c52a9f30d07dc.zip
op-kernel-dev-a0a68fb6872f545acd49035ea17c52a9f30d07dc.tar.gz
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>
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_layer.h')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_layer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.h b/drivers/gpu/drm/sun4i/sun4i_layer.h
index a97e376..4be1f09 100644
--- a/drivers/gpu/drm/sun4i/sun4i_layer.h
+++ b/drivers/gpu/drm/sun4i/sun4i_layer.h
@@ -26,6 +26,7 @@ plane_to_sun4i_layer(struct drm_plane *plane)
return container_of(plane, struct sun4i_layer, plane);
}
-struct sun4i_layer **sun4i_layers_init(struct drm_device *drm);
+struct sun4i_layer **sun4i_layers_init(struct drm_device *drm,
+ struct sun4i_backend *backend);
#endif /* _SUN4I_LAYER_H_ */
OpenPOWER on IntegriCloud