diff options
author | Chen-Yu Tsai <wens@csie.org> | 2017-03-09 11:05:28 +0100 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-03-09 11:21:52 +0100 |
commit | 18c3b300837b864e875d23f22eef5b7acefeccf1 (patch) | |
tree | 4b95d4cb65f916a521fcad9cf26b2f12418dabad /drivers/gpu/drm/sun4i/sun4i_crtc.h | |
parent | drm/sun4i: tv: Get tcon and backend pointers from associated crtc (diff) | |
download | linux-18c3b300837b864e875d23f22eef5b7acefeccf1.tar.xz linux-18c3b300837b864e875d23f22eef5b7acefeccf1.zip |
drm/sun4i: Pass pointers for associated backend and tcon into crtc init
sun4i_crtc controls the backend and tcon hardware blocks of the display
pipeline.
Pass pointers to the underlying devices into the crtc init function,
instead of trying to fetch them from the drm_device structure. This
avoids the headache of trying to figure out which devices the crtc
is actually associated with.
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_crtc.h')
-rw-r--r-- | drivers/gpu/drm/sun4i/sun4i_crtc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_crtc.h b/drivers/gpu/drm/sun4i/sun4i_crtc.h index cd0e633cce3a..230cb8f0d601 100644 --- a/drivers/gpu/drm/sun4i/sun4i_crtc.h +++ b/drivers/gpu/drm/sun4i/sun4i_crtc.h @@ -27,6 +27,8 @@ static inline struct sun4i_crtc *drm_crtc_to_sun4i_crtc(struct drm_crtc *crtc) return container_of(crtc, struct sun4i_crtc, crtc); } -struct sun4i_crtc *sun4i_crtc_init(struct drm_device *drm); +struct sun4i_crtc *sun4i_crtc_init(struct drm_device *drm, + struct sun4i_backend *backend, + struct sun4i_tcon *tcon); #endif /* _SUN4I_CRTC_H_ */ |