OSDN Git Service

drm/vc4: crtc: Pass the device and data in vc4_crtc_init
authorMaxime Ripard <maxime@cerno.tech>
Wed, 23 Nov 2022 15:25:59 +0000 (16:25 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 28 Nov 2022 10:51:13 +0000 (11:51 +0100)
commit3f98076f294fa58e83c87ebfb0af4ccf2454250d
treeceeb248a2251a5a9d4ed4d2ed2b3eb019cb47e31
parent5676105188f8931c838342f2827ed9c3bd8593d7
drm/vc4: crtc: Pass the device and data in vc4_crtc_init

Both users of vc4_crtc_init need the same extra initialization to set
the pointer to the platform_device and the CRTC data. Since it's
mandatory, let's make them both arguments of vc4_crtc_init().

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20221123-rpi-kunit-tests-v1-17-051a0bb60a16@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_txp.c