Message ID | 20240804170551.33971-2-jose.exposito89@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/connector: Document destroy hook in drmm init functions | expand |
On Sun, Aug 04, 2024 at 07:05:52PM +0200, José Expósito wrote: > 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> Applied to drm-misc-next, thanks for your patch. -Sima > --- > drivers/gpu/drm/drm_connector.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c > index 7c44e3a1d8e0..292aaffb6aab 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. > */ > -- > 2.45.2 >
diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 7c44e3a1d8e0..292aaffb6aab 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. */
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> --- drivers/gpu/drm/drm_connector.c | 4 ++++ 1 file changed, 4 insertions(+)