summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sun4i/sun4i_rgb.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2017-02-23 09:05:41 +0100
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-03-07 22:18:24 +0100
commitb9c8506cb88b974522133d7eccc3d924ed29cf23 (patch)
tree0976365af3e7620062e237b7ab99ee5f9de8d443 /drivers/gpu/drm/sun4i/sun4i_rgb.h
parentdrm/sun4i: tv: Switch to drm_of_find_possible_crtcs (diff)
downloadlinux-b9c8506cb88b974522133d7eccc3d924ed29cf23.tar.xz
linux-b9c8506cb88b974522133d7eccc3d924ed29cf23.zip
drm/sun4i: rgb: Pass tcon pointer when initializing RGB encoder
The RGB encoder represents channel 0 of the TCON. Instead of fetching the pointer to its TCON from the main sun4i_drv structure, pass it in as part of the init call, save it, and use it directly in the encoder and connector callbacks. We can also drop the otherwise unused sun4i_drv pointer. 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_rgb.h')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_rgb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_rgb.h b/drivers/gpu/drm/sun4i/sun4i_rgb.h
index 7c4da4c8acdd..40c18f4a6c7e 100644
--- a/drivers/gpu/drm/sun4i/sun4i_rgb.h
+++ b/drivers/gpu/drm/sun4i/sun4i_rgb.h
@@ -13,6 +13,6 @@
#ifndef _SUN4I_RGB_H_
#define _SUN4I_RGB_H_
-int sun4i_rgb_init(struct drm_device *drm);
+int sun4i_rgb_init(struct drm_device *drm, struct sun4i_tcon *tcon);
#endif /* _SUN4I_RGB_H_ */