]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm: introduce drm_dev_{get/put} functions
authorAishwarya Pant <aishpant@gmail.com>
Tue, 26 Sep 2017 08:28:49 +0000 (13:58 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 26 Sep 2017 11:12:15 +0000 (13:12 +0200)
commit9a96f55034e41b4e002b767e9218d55f03bdff7d
tree8e07ec45164d06dec20ed21c81bc7de3cd8af8a1
parentf2a44dd02329707514af16fe0904a78604a97c0b
drm: introduce drm_dev_{get/put} functions

Reference counting functions in the kernel typically use get/put suffixes. For
maintaining coding style consistency, introduce drm_dev_{get/put} functions. All
callers of drm_dev_ref() API have been converted in this patch and hence it has
been dropped while the drm_dev_unref() API with non-trivial number of users
remains for compatibility.

The semantic patch scripts/coccinelle/api/drm-get-put.cocci has been updated
with the new helper for conversion of drm_dev_unref() to drm_dev_put()

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/6babda56134035a98220d5d37a4fd4048df214ce.1506413698.git.aishpant@gmail.com
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_prime.c
include/drm/drm_drv.h
scripts/coccinelle/api/drm-get-put.cocci