drm/connector: Document destroy hook in drmm init functions
Subsystems (2)
PATCH 1/1 drm/connector: Document destroy hook in drmm init functions
Document that the drm_connector_funcs.destroy hook must be NULL in drmm_connector_init() and drmm_connector_hdmi_init().
Signed-off-by José Expósito <[email protected]>
--- drivers/gpu/drm/drm_connector.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_connector.c +4 -0
@@ -426,6 +426,8 @@ static void drm_connector_cleanup_action(struct drm_device *dev,* * The connector structure should be allocated with drmm_kzalloc(). * +* The @drm_connector_funcs.destroy hook must be NULL. +* * Returns: * Zero on success, error code on failure. */
@@ -474,6 +476,8 @@ EXPORT_SYMBOL(drmm_connector_init);* * The connector structure should be allocated with drmm_kzalloc(). * +* The @drm_connector_funcs.destroy hook must be NULL. +* * Returns: * Zero on success, error code on failure. */
Signature · 1 line
2.45.2
Daniel Vetter
AppliedQuoted 4 lines · José Expósito
Document that the drm_connector_funcs.destroy hook must be NULL in
drmm_connector_init()anddrmm_connector_hdmi_init().Signed-off-by José Expósito <[email protected]>
Applied to drm-misc-next, thanks for your patch.
-Sima
Quoted 29 lines
--- drivers/gpu/drm/drm_connector.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/drm_connector.c +4
-0@@ -426,6 +426,8 @@ static void drm_connector_cleanup_action(struct drm_device *dev,* * The connector structure should be allocated with drmm_kzalloc(). * +* The @drm_connector_funcs.destroy hook must be NULL. +* * Returns: * Zero on success, error code on failure. */ @@ -474,6 +476,8 @@ EXPORT_SYMBOL(drmm_connector_init);* * The connector structure should be allocated with drmm_kzalloc(). * +* The @drm_connector_funcs.destroy hook must be NULL. +* * Returns: * Zero on success, error code on failure. */ Signature · 1 line
2.45.2
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch