Re: [PATCH] drm: virtio: replace reference/unreference with get/put

2017-10-30 Thread Daniel Vetter
On Mon, Oct 23, 2017 at 10:08:06PM +0530, Aastha Gupta wrote: > DRM core uses reference/unreference suffixes for refcounting > functions, but kernel uses get/put (e.g. kref_get/put()). > Replace reference/unreference with get/put for consistency > and also it's shorter. > > The following cocci scr

[PATCH] drm: virtio: replace reference/unreference with get/put

2017-10-24 Thread Aastha Gupta
DRM core uses reference/unreference suffixes for refcounting functions, but kernel uses get/put (e.g. kref_get/put()). Replace reference/unreference with get/put for consistency and also it's shorter. The following cocci script was used to generate the patch: @@ expression e; @@ ( -drm_gem_objec