drm/vc4: vec: Embed DRM structures into the private structure
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 17:39:25 +0000 (19:39 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jul 2022 08:46:11 +0000 (10:46 +0200)
commit9780315b068204bae921512154fefe84d321079e
treee857418808923fe2691c8fd5d396f1bc770a212c
parenta0883e4df276b3ac9532d4de6fa7e1186cfa161c
drm/vc4: vec: Embed DRM structures into the private structure

The VC4 VEC driver private structure contains only a pointer to the
encoder and connector 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) and
drm_connector into struct vc4_vec 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-56-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_vec.c