drm/vc4: crtc: Move the CRTC initialisation to a separate function
authorMaxime Ripard <maxime@cerno.tech>
Thu, 11 Jun 2020 13:36:51 +0000 (15:36 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 7 Jul 2020 08:51:21 +0000 (10:51 +0200)
commit5fefc601a6c484ff2a3a6dc91f6310ca1224931a
tree68e299a60178c76fc27e92699df694ad388c0d61
parent811a850cbddef47623c5f6197154a05bb4efc7c9
drm/vc4: crtc: Move the CRTC initialisation to a separate function

The upcoming patches to turn the TXP into a full-blown CRTC will have the
same CRTC initialisation code, so let's move it into a separate, public,
function so that we can reuse it later on.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/3a3026c0e7408895d154d8dea454cf6d1c459715.1591882579.git-series.maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h