diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-10 13:36:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:06:34 -0500 |
commit | 1309b55b4de18bbfe19c73225a5481d6cdc8a463 (patch) | |
tree | 7993651309a0a35f8ec954fffa0b7b04003f9d32 /drivers/net/wireless/libertas/hostcmd.h | |
parent | b6b8abe4ddec2cfb3471ea60f965a137cd4d529d (diff) |
libertas: add opaque extra argument to cmd callback function
This will be useful for letting callbacks do stuff like copying the
response into a buffer provided by the caller of lbs_cmd()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/hostcmd.h')
-rw-r--r-- | drivers/net/wireless/libertas/hostcmd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/hostcmd.h b/drivers/net/wireless/libertas/hostcmd.h index f1c1d3f106c8..ed502b74fa3c 100644 --- a/drivers/net/wireless/libertas/hostcmd.h +++ b/drivers/net/wireless/libertas/hostcmd.h | |||
@@ -71,7 +71,8 @@ struct cmd_ctrl_node { | |||
71 | u16 wait_option; | 71 | u16 wait_option; |
72 | /* command response */ | 72 | /* command response */ |
73 | void *pdata_buf; | 73 | void *pdata_buf; |
74 | int (*callback)(uint16_t respcmd, struct cmd_ds_command *resp, struct lbs_private *priv); | 74 | int (*callback)(struct lbs_private *priv, unsigned long arg, struct cmd_ds_command *resp); |
75 | unsigned long callback_arg; | ||
75 | /* command data */ | 76 | /* command data */ |
76 | u8 *bufvirtualaddr; | 77 | u8 *bufvirtualaddr; |
77 | /* wait queue */ | 78 | /* wait queue */ |