summaryrefslogtreecommitdiff
path: root/linux-core/drm_objects.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-07-16 13:45:39 +1000
committerDave Airlie <airlied@linux.ie>2007-07-16 13:45:39 +1000
commit191c062933bb7a6f9dabf3fd639321e1dac88c50 (patch)
treeed855d150b2b099d52df5a1e2c880e5229e7f22f /linux-core/drm_objects.h
parent24311d5d82b61a4729b15355088dd9c2898d1089 (diff)
drm: remove drm_ref_t
Diffstat (limited to 'linux-core/drm_objects.h')
-rw-r--r--linux-core/drm_objects.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux-core/drm_objects.h b/linux-core/drm_objects.h
index 441c19f2..f792dc84 100644
--- a/linux-core/drm_objects.h
+++ b/linux-core/drm_objects.h
@@ -64,9 +64,9 @@ struct drm_user_object {
struct drm_file *owner;
void (*ref_struct_locked) (struct drm_file * priv,
struct drm_user_object * obj,
- drm_ref_t ref_action);
+ enum drm_ref_type ref_action);
void (*unref) (struct drm_file * priv, struct drm_user_object * obj,
- drm_ref_t unref_action);
+ enum drm_ref_type unref_action);
void (*remove) (struct drm_file * priv, struct drm_user_object * obj);
};
@@ -81,7 +81,7 @@ struct drm_ref_object {
struct drm_hash_item hash;
struct list_head list;
atomic_t refcount;
- drm_ref_t unref_action;
+ enum drm_ref_type unref_action;
};
/**
@@ -112,7 +112,7 @@ extern int drm_remove_user_object(struct drm_file * priv, struct drm_user_object
extern int drm_add_ref_object(struct drm_file * priv,
struct drm_user_object * referenced_object,
- drm_ref_t ref_action);
+ enum drm_ref_type ref_action);
/*
* Must be called with the struct_mutex held.
@@ -120,7 +120,7 @@ extern int drm_add_ref_object(struct drm_file * priv,
struct drm_ref_object *drm_lookup_ref_object(struct drm_file * priv,
struct drm_user_object * referenced_object,
- drm_ref_t ref_action);
+ enum drm_ref_type ref_action);
/*
* Must be called with the struct_mutex held.
* If "item" has been obtained by a call to drm_lookup_ref_object. You may not