]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm: update the documentation of drm_framebuffer_unregister_private
authorRongrong Zou <zourongrong@gmail.com>
Mon, 31 Oct 2016 11:59:56 +0000 (19:59 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Nov 2016 09:39:02 +0000 (10:39 +0100)
Add obvious description to drm_framebuffer_unregister_private()
to explain it is deprecated.

Signed-off-by: Rongrong Zou <zourongrong@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1477915196-100299-1-git-send-email-zourongrong@gmail.com
drivers/gpu/drm/drm_framebuffer.c

index 49fd7db758e02e9a19c31501c46378d6b491a4ed..af786f27f72ec13687a8e6084b1bf46bf694d86c 100644 (file)
@@ -673,6 +673,11 @@ EXPORT_SYMBOL(drm_framebuffer_lookup);
  * those used for fbdev. Note that the caller must hold a reference of it's own,
  * i.e. the object may not be destroyed through this call (since it'll lead to a
  * locking inversion).
+ *
+ * NOTE: This function is deprecated. For driver-private framebuffers it is not
+ * recommended to embed a framebuffer struct info fbdev struct, instead, a
+ * framebuffer pointer is preferred and drm_framebuffer_unreference() should be
+ * called when the framebuffer is to be cleaned up.
  */
 void drm_framebuffer_unregister_private(struct drm_framebuffer *fb)
 {