diff mbox

[1/3] drm: Add a note to drm_property_create() about property lifetime

Message ID 1414766353-25349-1-git-send-email-damien.lespiau@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lespiau, Damien Oct. 31, 2014, 2:39 p.m. UTC
Cc: Chandra Konduru <chandra.konduru@intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 drivers/gpu/drm/drm_crtc.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Daniel Vetter Oct. 31, 2014, 5:38 p.m. UTC | #1
On Fri, Oct 31, 2014 at 02:39:11PM +0000, Damien Lespiau wrote:
> Cc: Chandra Konduru <chandra.konduru@intel.com>
> Cc: Daniel Vetter <daniel.vetter@intel.com>
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>

On the entire series:

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>

Merged into topic/core-stuff for shepherding until it lands in drm-next.
-Daniel

> ---
>  drivers/gpu/drm/drm_crtc.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
> index 4081d7a..0f3c24c 100644
> --- a/drivers/gpu/drm/drm_crtc.c
> +++ b/drivers/gpu/drm/drm_crtc.c
> @@ -3417,6 +3417,10 @@ void drm_fb_release(struct drm_file *priv)
>   * object with drm_object_attach_property. The returned property object must be
>   * freed with drm_property_destroy.
>   *
> + * Note that the DRM core keeps a per-device list of properties and that, if
> + * drm_mode_config_cleanup() is called, it will destroy all properties created
> + * by the driver.
> + *
>   * Returns:
>   * A pointer to the newly created property on success, NULL on failure.
>   */
> -- 
> 1.8.3.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 4081d7a..0f3c24c 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -3417,6 +3417,10 @@  void drm_fb_release(struct drm_file *priv)
  * object with drm_object_attach_property. The returned property object must be
  * freed with drm_property_destroy.
  *
+ * Note that the DRM core keeps a per-device list of properties and that, if
+ * drm_mode_config_cleanup() is called, it will destroy all properties created
+ * by the driver.
+ *
  * Returns:
  * A pointer to the newly created property on success, NULL on failure.
  */