All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/tilcdc: replace reference/unreference with get/put
@ 2017-09-21 19:46 ` Aishwarya Pant
  0 siblings, 0 replies; 8+ messages in thread
From: Aishwarya Pant @ 2017-09-21 19:46 UTC (permalink / raw)
  To: Daniel Vetter, Jani Nikula, Sean Paul, David Airlie, dri-devel
  Cc: outreachy-kernel

This patchset introduces drm_dev_get() and drm_dev_put() functions that are
intented to be replacements for drm_dev_{ref/unref}.

Then all usages of ref/reference and unref/unreference suffixes are replaced by
get/put reference count functions in tilcdc. The following cocci script was used
to make 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);
)

Aishwarya Pant (2):
  drm: introduce drm_dev_{get/put} functions
  drm/tilcdc: replace reference/unreference() with get/put

 drivers/gpu/drm/drm_drv.c            | 64 +++++++++++++++++++++++++-----------
 drivers/gpu/drm/tilcdc/tilcdc_crtc.c |  6 ++--
 drivers/gpu/drm/tilcdc/tilcdc_drv.c  |  2 +-
 include/drm/drm_drv.h                |  4 ++-
 4 files changed, 52 insertions(+), 24 deletions(-)

-- 
2.7.4



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-09-26  5:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-21 19:46 [PATCH 0/2] drm/tilcdc: replace reference/unreference with get/put Aishwarya Pant
2017-09-21 19:46 ` Aishwarya Pant
2017-09-21 19:47 ` [PATCH 1/2] drm: introduce drm_dev_{get/put} functions Aishwarya Pant
2017-09-21 19:47   ` Aishwarya Pant
2017-09-26  5:22   ` [Outreachy kernel] " Daniel Vetter
2017-09-26  5:22     ` Daniel Vetter
2017-09-21 19:47 ` [PATCH 2/2] drm/tilcdc: replace reference/unreference() with get/put Aishwarya Pant
2017-09-21 19:47   ` Aishwarya Pant

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.