drm/vc4: dsi: Embed DRM structures into the private structure
authorMaxime Ripard <maxime@cerno.tech>
Wed, 11 May 2022 09:03:23 +0000 (11:03 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 7 Sep 2022 08:53:03 +0000 (10:53 +0200)
commit960ef9b7c6277658101d64818b56ae97f6d97927
tree65a4f32f663ec97c786639ad1a72b6e802236a80
parent9b82ca81870ecc0f9b278a82fcb35ccc676f233a
drm/vc4: dsi: Embed DRM structures into the private structure

The VC4 DSI driver private structure contains only a pointer to the
encoder it implements. This makes the overall structure somewhat
inconsistent with the rest of the driver, and complicates its
initialisation without any apparent gain.

Let's embed the drm_encoder structure (through the vc4_encoder one) into
struct vc4_dsi to fix both issues.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_dsi.c