mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
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
This commit is contained in:
parent
ad09360750
commit
a4a69da06b
7 changed files with 79 additions and 44 deletions
|
|
@ -26,6 +26,12 @@ expression object;
|
|||
|
|
||||
- drm_connector_unreference(object)
|
||||
+ drm_connector_put(object)
|
||||
|
|
||||
- drm_framebuffer_reference(object)
|
||||
+ drm_framebuffer_get(object)
|
||||
|
|
||||
- drm_framebuffer_unreference(object)
|
||||
+ drm_framebuffer_put(object)
|
||||
)
|
||||
|
||||
@r depends on report@
|
||||
|
|
@ -41,6 +47,10 @@ drm_mode_object_reference@p(object)
|
|||
drm_connector_unreference@p(object)
|
||||
|
|
||||
drm_connector_reference@p(object)
|
||||
|
|
||||
drm_framebuffer_unreference@p(object)
|
||||
|
|
||||
drm_framebuffer_reference@p(object)
|
||||
)
|
||||
|
||||
@script:python depends on report@
|
||||
|
|
|
|||
Loading…
Reference in a new issue