]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Introduce drm_framebuffer_{get,put}()
authorThierry Reding <treding@nvidia.com>
Tue, 28 Feb 2017 14:46:40 +0000 (15:46 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 28 Feb 2017 15:15:03 +0000 (16:15 +0100)
commit4997576a8a7cd5593997ace7a93d71f21c9a1213
treef27062e64385f44ddddabc08b8d3f98cc2700446
parent0207bae2d801c833da4f82778cb4a596949e9cb3
drm: Introduce drm_framebuffer_{get,put}()

For consistency with other reference counting APIs in the kernel, add
drm_framebuffer_get() and drm_framebuffer_put() to reference count DRM
framebuffers.

Compatibility aliases are added to keep existing code working. To help
speed up the transition, all the instances of the old functions in the
DRM core are already replaced in this commit.

The existing semantic patch for the DRM subsystem-wide conversion is
extended to account for these new helpers.

Reviewed-by: Sean Paul <seanpaul@chromium.org>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170228144643.5668-5-thierry.reding@gmail.com
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_framebuffer.c
drivers/gpu/drm/drm_plane.c
include/drm/drm_framebuffer.h
scripts/coccinelle/api/drm-get-put.cocci