summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sun4i/sun4i_tcon.h
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2016-07-19 15:17:27 +0200
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-08-22 15:34:12 +0200
commitae558110e51737b3596f400505ee598acbbf6713 (patch)
treea8565efab9731bc990508d67ddc36e1a896db83a /drivers/gpu/drm/sun4i/sun4i_tcon.h
parentLinux 4.8-rc1 (diff)
downloadlinux-ae558110e51737b3596f400505ee598acbbf6713.tar.xz
linux-ae558110e51737b3596f400505ee598acbbf6713.zip
drm/sun4i: Store TCON's device structure pointer
We will need to access TCON's struct device from outside of TCON's driver bind function. Store it in our private structure. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_tcon.h')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_tcon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.h b/drivers/gpu/drm/sun4i/sun4i_tcon.h
index 0e0b11db401b..230550b720f1 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.h
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.h
@@ -143,6 +143,7 @@
#define SUN4I_TCON_MAX_CHANNELS 2
struct sun4i_tcon {
+ struct device *dev;
struct drm_device *drm;
struct regmap *regs;