OSDN Git Service

drm/vc4: dsi: Embed DRM structures into the private structure
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 17:39:02 +0000 (19:39 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jul 2022 08:46:09 +0000 (10:46 +0200)
commit73b68b28a9e819e600ca2d0640721ae61bdaf55a
tree2aefa8e609ab13147f4126ae851ce6239386fae3
parent71b1bd4c2bd404b28cc499fa37d02e32f55de865
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>
Link: https://lore.kernel.org/r/20220711173939.1132294-33-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_dsi.c