]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Introduce drm_property_blob_{get,put}()
authorThierry Reding <treding@nvidia.com>
Tue, 28 Feb 2017 14:46:42 +0000 (15:46 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 28 Feb 2017 15:16:46 +0000 (16:16 +0100)
commitf25714fcb16711e1de3f26af27c5b97ef43aceb4
tree3447583297ce95fe76ef1525abad2078cf4961a3
parentef7e3b7a007510682ba43d1474ceb536a95f671a
drm: Introduce drm_property_blob_{get,put}()

For consistency with other reference counting APIs in the kernel, add
drm_property_blob_get() and drm_property_blob_put() to reference count
DRM blob properties.

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.

A semantic patch is provided that can be used to convert all drivers to
the 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-7-thierry.reding@gmail.com
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_mode_config.c
drivers/gpu/drm/drm_property.c
include/drm/drm_property.h
scripts/coccinelle/api/drm-get-put.cocci