summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_connector.c
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2024-08-04 19:05:52 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2024-08-05 20:02:40 +0200
commita99aff2608f422da833cd91fa1eff23daa05c0bd (patch)
tree18cbd49fb0c616db6914dfd85c013dfbeb5cff5d /drivers/gpu/drm/drm_connector.c
parent21e97d3ca814ea59d5ddb6a734125bd006b66a60 (diff)
downloadlwn-a99aff2608f422da833cd91fa1eff23daa05c0bd.tar.gz
lwn-a99aff2608f422da833cd91fa1eff23daa05c0bd.zip
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 <jose.exposito89@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20240804170551.33971-2-jose.exposito89@gmail.com
Diffstat (limited to 'drivers/gpu/drm/drm_connector.c')
-rw-r--r--drivers/gpu/drm/drm_connector.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
index b4f4d2f908d1..80e239a64938 100644
--- a/drivers/gpu/drm/drm_connector.c
+++ b/drivers/gpu/drm/drm_connector.c
@@ -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.
*/