diff options
author | Rongrong Zou <zourongrong@gmail.com> | 2016-10-31 19:59:56 +0800 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-11-08 10:39:02 +0100 |
commit | 03e93ac756915e2cb3b7a8469b61a88949ac7a1c (patch) | |
tree | 3a7438a4c19d853d9de5b91b436d4c027fdf8bc5 /drivers/gpu/drm/drm_framebuffer.c | |
parent | 5c7fcf2db027fe3beee35b25878723da2924fb4a (diff) | |
download | linux-stable-03e93ac756915e2cb3b7a8469b61a88949ac7a1c.tar.gz linux-stable-03e93ac756915e2cb3b7a8469b61a88949ac7a1c.tar.bz2 linux-stable-03e93ac756915e2cb3b7a8469b61a88949ac7a1c.zip |
drm: update the documentation of drm_framebuffer_unregister_private
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
Diffstat (limited to 'drivers/gpu/drm/drm_framebuffer.c')
-rw-r--r-- | drivers/gpu/drm/drm_framebuffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_framebuffer.c index 49fd7db758e0..af786f27f72e 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -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) { |