]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb01a5299d107fbf4cf9e321bcaee1e1b9438ce2
treec24ee706674b853393f5de2cc7428487e968c7e4
parentae6827c550b5242dc2a2fab4543221196d84c424
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