drm/vc4: dpi: 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:02 +0000 (10:53 +0200)
commitf4750628519bfff981a8351e06436f16de483f7a
treec3910b523a05f986ba446ae56525b9df70dab0f3
parent84798086dd4512c95dfa28549fce79422b79a6b5
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>
drivers/gpu/drm/vc4/vc4_dpi.c