aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/async.h
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2013-03-12 13:59:14 -0700
committerTejun Heo <tj@kernel.org>2013-03-12 13:59:14 -0700
commit362f2b098b188ede9c4350cc20e58040dbfa515e (patch)
tree17ff75cb57d281e46facf7704ae49d76dc29a3b7 /include/linux/async.h
parentasync: remove unused @node from struct async_domain (diff)
downloadlinux-dev-362f2b098b188ede9c4350cc20e58040dbfa515e.tar.xz
linux-dev-362f2b098b188ede9c4350cc20e58040dbfa515e.zip
async: rename and redefine async_func_ptr
A function type is typically defined as typedef ret_type (*func)(args..) but async_func_ptr is not. Redefine it. Also rename async_func_ptr to async_func_t for _func_t suffix is more generic. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Arjan van de Ven <arjan@linux.intel.com>
Diffstat (limited to 'include/linux/async.h')
-rw-r--r--include/linux/async.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/async.h b/include/linux/async.h
index 98ea0fef30d5..6b0226bdaadc 100644
--- a/include/linux/async.h
+++ b/include/linux/async.h
@@ -16,7 +16,7 @@
#include <linux/list.h>
typedef u64 async_cookie_t;
-typedef void (async_func_ptr) (void *data, async_cookie_t cookie);
+typedef void (*async_func_t) (void *data, async_cookie_t cookie);
struct async_domain {
struct list_head pending;
unsigned registered:1;
@@ -37,8 +37,8 @@ struct async_domain {
struct async_domain _name = { .pending = LIST_HEAD_INIT(_name.pending), \
.registered = 0 }
-extern async_cookie_t async_schedule(async_func_ptr *ptr, void *data);
-extern async_cookie_t async_schedule_domain(async_func_ptr *ptr, void *data,
+extern async_cookie_t async_schedule(async_func_t func, void *data);
+extern async_cookie_t async_schedule_domain(async_func_t func, void *data,
struct async_domain *domain);
void async_unregister_domain(struct async_domain *domain);
extern void async_synchronize_full(void);