drm/connector: Introduce drmm_connector_init
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 17:38:39 +0000 (19:38 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jul 2022 08:46:06 +0000 (10:46 +0200)
commit35a3b82f1bdd60e454de34f984a3f09b38f64b61
tree14136ce24bec20be56af16a601a9f8b4ca0ff73f
parenta961b197d72601b0363fd7614f9b98d5721f9c6c
drm/connector: Introduce drmm_connector_init

Unlike other DRM entities, there's no helper to create a DRM-managed
initialisation of a connector.

Let's create an helper to initialise a connector that would be passed as an
argument, and handle the cleanup through a DRM-managed action.

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