Skip to content

Commit

Permalink
drm: Remove drm_property_{un/reference}_blob aliases
Browse files Browse the repository at this point in the history
This patch remove the compatibility aliases
drm_property_{reference/unreference}_blob of
drm_property_blob_{get/put} since all callers have been converted to the
prefered _{get/put}.

Remove the helpers from the semantic patch drm-get-put-cocci.

Signed-off-by: Haneen Mohammed <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/20180320133749.GA11695@haneen-VirtualBox
  • Loading branch information
haneensa authored and atseanpaul committed Mar 22, 2018
1 parent 1c7095d commit 3ae7fb2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
26 changes: 0 additions & 26 deletions include/drm/drm_property.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,32 +280,6 @@ bool drm_property_replace_blob(struct drm_property_blob **blob,
struct drm_property_blob *drm_property_blob_get(struct drm_property_blob *blob);
void drm_property_blob_put(struct drm_property_blob *blob);

/**
* drm_property_reference_blob - acquire a blob property reference
* @blob: DRM blob property
*
* This is a compatibility alias for drm_property_blob_get() and should not be
* used by new code.
*/
static inline struct drm_property_blob *
drm_property_reference_blob(struct drm_property_blob *blob)
{
return drm_property_blob_get(blob);
}

/**
* drm_property_unreference_blob - release a blob property reference
* @blob: DRM blob property
*
* This is a compatibility alias for drm_property_blob_put() and should not be
* used by new code.
*/
static inline void
drm_property_unreference_blob(struct drm_property_blob *blob)
{
drm_property_blob_put(blob);
}

/**
* drm_property_find - find property object
* @dev: DRM device
Expand Down
10 changes: 0 additions & 10 deletions scripts/coccinelle/api/drm-get-put.cocci
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ expression object;
- drm_gem_object_unreference_unlocked(object)
+ drm_gem_object_put_unlocked(object)
|
- drm_property_reference_blob(object)
+ drm_property_blob_get(object)
|
- drm_property_unreference_blob(object)
+ drm_property_blob_put(object)
|
- drm_dev_unref(object)
+ drm_dev_put(object)
)
Expand All @@ -72,10 +66,6 @@ __drm_gem_object_unreference(object)
|
drm_gem_object_unreference_unlocked(object)
|
drm_property_unreference_blob@p(object)
|
drm_property_reference_blob@p(object)
|
drm_dev_unref@p(object)
)

Expand Down

0 comments on commit 3ae7fb2

Please sign in to comment.