diff options
author | Christoph Jaeger <email@christophjaeger.info> | 2014-09-24 10:42:18 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-28 22:03:58 -0400 |
commit | 348fecd2a2fdab4fa4e1a07d85a28a50f44c49d9 (patch) | |
tree | c8c64c2794388e2ae6c05d5f72af403304691364 /drivers/staging/ozwpan | |
parent | ae66475289d13ef724cd5a523a4a5ce42e81582b (diff) | |
download | op-kernel-dev-348fecd2a2fdab4fa4e1a07d85a28a50f44c49d9.zip op-kernel-dev-348fecd2a2fdab4fa4e1a07d85a28a50f44c49d9.tar.gz |
staging: ozwpan: Remove typedefs
As these typedefs are only used once, there is no real need for them.
Signed-off-by: Christoph Jaeger <email@christophjaeger.info>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan')
-rw-r--r-- | drivers/staging/ozwpan/ozproto.h | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/drivers/staging/ozwpan/ozproto.h b/drivers/staging/ozwpan/ozproto.h index 73cc69b..30c2db9 100644 --- a/drivers/staging/ozwpan/ozproto.h +++ b/drivers/staging/ozwpan/ozproto.h @@ -29,23 +29,14 @@ /* Application handler functions. */ -typedef int (*oz_app_init_fn_t)(void); -typedef void (*oz_app_term_fn_t)(void); -typedef int (*oz_app_start_fn_t)(struct oz_pd *pd, int resume); -typedef void (*oz_app_stop_fn_t)(struct oz_pd *pd, int pause); -typedef void (*oz_app_rx_fn_t)(struct oz_pd *pd, struct oz_elt *elt); -typedef int (*oz_app_heartbeat_fn_t)(struct oz_pd *pd); -typedef void (*oz_app_farewell_fn_t)(struct oz_pd *pd, u8 ep_num, - u8 *data, u8 len); - struct oz_app_if { - oz_app_init_fn_t init; - oz_app_term_fn_t term; - oz_app_start_fn_t start; - oz_app_stop_fn_t stop; - oz_app_rx_fn_t rx; - oz_app_heartbeat_fn_t heartbeat; - oz_app_farewell_fn_t farewell; + int (*init)(void); + void (*term)(void); + int (*start)(struct oz_pd *pd, int resume); + void (*stop)(struct oz_pd *pd, int pause); + void (*rx)(struct oz_pd *pd, struct oz_elt *elt); + int (*heartbeat)(struct oz_pd *pd); + void (*farewell)(struct oz_pd *pd, u8 ep_num, u8 *data, u8 len); }; int oz_protocol_init(char *devs); |