drm/tilcdc: replace reference/unreference() with get/put
authorAishwarya Pant <aishpant@gmail.com>
Tue, 26 Sep 2017 08:30:19 +0000 (14:00 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 26 Sep 2017 11:12:15 +0000 (13:12 +0200)
commitce7b700d1e0da806a5bcba19a197b050563df78f
treed12c0b24f7a325f0a2aa2946993af8a783e972f6
parent9a96f55034e41b4e002b767e9218d55f03bdff7d
drm/tilcdc: replace reference/unreference() with get/put

For maintaining consistency with kernel coding style replace
reference/unreference in ref counting functions with get/put.

The following cocci script was used to generate the tilcdc 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: Aishwarya Pant <aishpant@gmail.com>
Acked-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/3f2f592f6ea28adfea3fd8b70421b2fab38f0b94.1506413698.git.aishpant@gmail.com
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
drivers/gpu/drm/tilcdc/tilcdc_drv.c