drm/vc4: crtc: Make encoder lookup helper public
authorMaxime Ripard <maxime@cerno.tech>
Thu, 1 Dec 2022 15:11:46 +0000 (16:11 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 8 Dec 2022 08:56:56 +0000 (09:56 +0100)
commit0656ce1240bc44c03ee31499e8e739b7d61138bb
treeabab625b1bea9ae30bb0a9164f4cda9e6581fb9f
parentee33ac2727da64f3e05dfa715d3079b265b2d124
drm/vc4: crtc: Make encoder lookup helper public

We'll need a function that looks up an encoder by its vc4_encoder_type.
Such a function is already present in the CRTC code, so let's make it
public so that we can reuse it in the unit tests.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: MaĆ­ra Canal <mcanal@igalia.com>
Link: https://lore.kernel.org/r/20221123-rpi-kunit-tests-v3-15-4615a663a84a@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h