diff options
author | Thierry Reding <treding@nvidia.com> | 2017-02-28 15:46:38 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-02-28 16:14:55 +0100 |
commit | 020a218f95bd3ceff7dd1022ff7ebc0497bc7bf9 (patch) | |
tree | 343a200b9e4373a380dad7d00dd26fb90a8338e1 /drivers/gpu/drm/nouveau | |
parent | 2135ea7aafa26b6bfbbd304459fdb624e82e021e (diff) | |
download | linux-020a218f95bd3ceff7dd1022ff7ebc0497bc7bf9.tar.bz2 |
drm: Introduce drm_mode_object_{get,put}()
For consistency with other reference counting APIs in the kernel, add
drm_mode_object_get() and drm_mode_object_put() to reference count DRM
mode objects.
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-3-thierry.reding@gmail.com
Diffstat (limited to 'drivers/gpu/drm/nouveau')
0 files changed, 0 insertions, 0 deletions