From ae558110e51737b3596f400505ee598acbbf6713 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Tue, 19 Jul 2016 15:17:27 +0200 Subject: 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 --- drivers/gpu/drm/sun4i/sun4i_tcon.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/drm/sun4i/sun4i_tcon.h') diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.h b/drivers/gpu/drm/sun4i/sun4i_tcon.h index 0e0b11d..230550b 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; -- cgit v1.1