drm/connector: Introduce drmm_connector_init
authorMaxime Ripard <maxime@cerno.tech>
Tue, 17 May 2022 13:09:33 +0000 (15:09 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 7 Sep 2022 08:53:00 +0000 (10:53 +0200)
commita596310ea0cfd2fcdf9cceb861d97698f40825e2
tree00c36cfede9de3de575d6a01f4b63bc556a007a2
parent19ed6b53c91a0e8f728f2e3f32484ebac3f8ccf1
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>
drivers/gpu/drm/drm_connector.c
include/drm/drm_connector.h