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
This commit is contained in:
Maxime Ripard 2022-11-23 16:25:59 +01:00
commit 3f98076f29
No known key found for this signature in database
GPG key ID: E3EF0D6F671851C5
3 changed files with 17 additions and 13 deletions