]> git.baikalelectronics.ru Git - kernel.git/commit
drm/crtc: Introduce drmm_crtc_init_with_planes
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 17:38:32 +0000 (19:38 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jul 2022 08:46:05 +0000 (10:46 +0200)
commit201335657fcf3917d595d28336731b42d995bb82
tree502a8180e3cd60b368a25e1e44a5274d1f2c7f5f
parent5dfbc24c7677dab4001c38f74ba59740e1246040
drm/crtc: Introduce drmm_crtc_init_with_planes

The DRM-managed function to register a CRTC is
drmm_crtc_alloc_with_planes(), which will allocate the underlying
structure and initialisation the CRTC.

However, we might want to separate the structure creation and the CRTC
initialisation, for example if the structure is shared across multiple
DRM entities, for example an encoder and a connector.

Let's create an helper to only initialise a CRTC that would be passed as
an argument.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-3-maxime@cerno.tech
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h