drm/vc4: dpi: Embed DRM structures into the private structure
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 17:38:54 +0000 (19:38 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jul 2022 08:46:08 +0000 (10:46 +0200)
commit7c9a4bab7aeb4be917d4202a99a780b40eaa78c7
treec24ee706674b853393f5de2cc7428487e968c7e4
parent693e35dcde748387c6dc538de6c3d78b3d2da866
drm/vc4: dpi: Embed DRM structures into the private structure

The VC4 DPI 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_dpi to fix both issues.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-25-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_dpi.c