]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Replace *_reference/unreference() or *_ref/unref with _get/put()
authorHarsha Sharma <harshasharmaiitr@gmail.com>
Mon, 9 Oct 2017 12:06:43 +0000 (17:36 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Oct 2017 14:53:59 +0000 (16:53 +0200)
commitc3ed110386db97e8213151ddc665adedf6cd11df
treef0b6df6e8db551da67d1473d7bef4415cb8a5ee7
parent4d58443dddf95e7f1de73f60b8490426eb300b10
drm/i915: Replace *_reference/unreference() or *_ref/unref with _get/put()

Replace instances of drm_framebuffer_reference/unreference() with
*_get/put() suffixes and drm_dev_unref with *_put() suffix
because get/put is shorter and consistent with the
kernel use of *_get/put suffixes.
Done with following coccinelle semantic patch

@@
expression ex;
@@

(
-drm_framebuffer_unreference(ex);
+drm_framebuffer_put(ex);
|
-drm_dev_unref(ex);
+drm_dev_put(ex);
|
-drm_framebuffer_reference(ex);
+drm_framebuffer_get(ex);
)

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
[danvet: Drop the drm_dev_put change for now, to make the patch apply
with out a backmerge.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171009120643.11953-1-harshasharmaiitr@gmail.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_fbdev.c