Commit 0f67706e authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Daniel Vetter

drm/i915: Replace drm_gem_object_{un/reference} with {put,get} functions

This patch unifies the naming of DRM functions for reference counting
of struct drm_gem_object. The resulting code is more aligned with the
rest of the Linux kernel interfaces.
Signed-off-by: default avatarThomas Zimmermann <tdz@users.sourceforge.net>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180618110154.30462-3-tdz@users.sourceforge.net
parent ef196b5c
...@@ -337,13 +337,10 @@ __attribute__((nonnull)) ...@@ -337,13 +337,10 @@ __attribute__((nonnull))
static inline struct drm_i915_gem_object * static inline struct drm_i915_gem_object *
i915_gem_object_get(struct drm_i915_gem_object *obj) i915_gem_object_get(struct drm_i915_gem_object *obj)
{ {
drm_gem_object_reference(&obj->base); drm_gem_object_get(&obj->base);
return obj; return obj;
} }
__deprecated
extern void drm_gem_object_reference(struct drm_gem_object *);
__attribute__((nonnull)) __attribute__((nonnull))
static inline void static inline void
i915_gem_object_put(struct drm_i915_gem_object *obj) i915_gem_object_put(struct drm_i915_gem_object *obj)
...@@ -351,9 +348,6 @@ i915_gem_object_put(struct drm_i915_gem_object *obj) ...@@ -351,9 +348,6 @@ i915_gem_object_put(struct drm_i915_gem_object *obj)
__drm_gem_object_unreference(&obj->base); __drm_gem_object_unreference(&obj->base);
} }
__deprecated
extern void drm_gem_object_unreference(struct drm_gem_object *);
__deprecated __deprecated
extern void drm_gem_object_unreference_unlocked(struct drm_gem_object *); extern void drm_gem_object_unreference_unlocked(struct drm_gem_object *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment