drm/rockchip: rgb: embed drm_encoder into rockchip_encoder
authorMichael Riesch <michael.riesch@wolfvision.net>
Tue, 24 Jan 2023 05:47:02 +0000 (06:47 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 5 Feb 2023 14:21:35 +0000 (15:21 +0100)
commitf8a852f1f86391127ab57b1c41fe0e62bc14f27c
tree02e2d67ee917a465e9f48f36f1157df17f90ed1b
parent368419a2d429e2438bef333959732c640310bdc7
drm/rockchip: rgb: embed drm_encoder into rockchip_encoder

Commit 540b8f271e53 ("drm/rockchip: Embed drm_encoder into
rockchip_decoder") provides the means to pass the endpoint ID to the
VOP2 driver, which sets the interface MUX accordingly. However, this
step has not yet been carried out for the RGB output block. Embed the
drm_encoder structure into the rockchip_encoder structure and set the
endpoint ID correctly.

Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230124054706.3921383-3-michael.riesch@wolfvision.net
drivers/gpu/drm/rockchip/rockchip_rgb.c