commit | b9c8506cb88b974522133d7eccc3d924ed29cf23 | [log] [tgz] |
---|---|---|
author | Chen-Yu Tsai <wens@csie.org> | Thu Feb 23 16:05:41 2017 +0800 |
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | Tue Mar 07 22:18:24 2017 +0100 |
tree | 0976365af3e7620062e237b7ab99ee5f9de8d443 | |
parent | 78428d672c2ecdb54c72ae427071c239650cb6c7 [diff] |
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>