aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sun4i/sun4i_drv.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2017-02-23 16:05:38 +0800
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-03-07 22:18:23 +0100
commitdcd215801b0279f0a021516526cf7c0b67d5302e (patch)
treefd3463cb32215a5aa15b10b974953b03aa0fac53 /drivers/gpu/drm/sun4i/sun4i_drv.h
parentdrm/sun4i: Initialize crtc from tcon bind function (diff)
downloadlinux-dev-dcd215801b0279f0a021516526cf7c0b67d5302e.tar.xz
linux-dev-dcd215801b0279f0a021516526cf7c0b67d5302e.zip
drm/sun4i: Drop primary layer pointer from sun4i_drv
The current layer init code keeps a pointer to the primary plane layer in sun4i_drv. When we eventually support multiple display pipelines, this would force us to keep track of primary planes for all crtcs. And these pointers only get used at bind time. Instead, have the crtc init code iterate through the returned layers to find the primary and cursor layers. And drop the pointer from the sun4i_drv structure. 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_drv.h')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_drv.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.h b/drivers/gpu/drm/sun4i/sun4i_drv.h
index 7a3345b7b6d1..5df50126ff52 100644
--- a/drivers/gpu/drm/sun4i/sun4i_drv.h
+++ b/drivers/gpu/drm/sun4i/sun4i_drv.h
@@ -20,7 +20,6 @@ struct sun4i_drv {
struct sun4i_backend *backend;
struct sun4i_tcon *tcon;
- struct drm_plane *primary;
struct drm_fbdev_cma *fbdev;
};