mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
drm/syncobj: remove drm_syncobj_cb and cleanup
This completes "drm/syncobj: Drop add/remove_callback from driver interface" and cleans up the implementation a bit. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Link: https://patchwork.freedesktop.org/patch/266255/
This commit is contained in:
parent
3415701a5e
commit
61a98b1b9a
2 changed files with 30 additions and 82 deletions
|
|
@ -28,8 +28,6 @@
|
|||
|
||||
#include "linux/dma-fence.h"
|
||||
|
||||
struct drm_syncobj_cb;
|
||||
|
||||
/**
|
||||
* struct drm_syncobj - sync object.
|
||||
*
|
||||
|
|
@ -62,25 +60,6 @@ struct drm_syncobj {
|
|||
struct file *file;
|
||||
};
|
||||
|
||||
typedef void (*drm_syncobj_func_t)(struct drm_syncobj *syncobj,
|
||||
struct drm_syncobj_cb *cb);
|
||||
|
||||
/**
|
||||
* struct drm_syncobj_cb - callback for drm_syncobj_add_callback
|
||||
* @node: used by drm_syncob_add_callback to append this struct to
|
||||
* &drm_syncobj.cb_list
|
||||
* @func: drm_syncobj_func_t to call
|
||||
*
|
||||
* This struct will be initialized by drm_syncobj_add_callback, additional
|
||||
* data can be passed along by embedding drm_syncobj_cb in another struct.
|
||||
* The callback will get called the next time drm_syncobj_replace_fence is
|
||||
* called.
|
||||
*/
|
||||
struct drm_syncobj_cb {
|
||||
struct list_head node;
|
||||
drm_syncobj_func_t func;
|
||||
};
|
||||
|
||||
void drm_syncobj_free(struct kref *kref);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue