diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-08 00:59:54 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 15:06:16 -0800 |
commit | 448a51ae0684c146c9f9ba4e178ab2182512258f (patch) | |
tree | 865dc30fe6ec85b901b8f944d11aa852ffd7a605 /drivers/net/wireless/libertas/decl.h | |
parent | ac47246e246c183ed68b3fdb307a83d00313a325 (diff) |
libertas: switch lbs_cmd() to take a callback function pointer
All existing code which sends commands is set up to have some function
called with the results, not to get data back. It's more versatile this
way, and providing it with a callback function which involves memcpy()
is hardly difficult.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/decl.h')
-rw-r--r-- | drivers/net/wireless/libertas/decl.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/decl.h b/drivers/net/wireless/libertas/decl.h index 6f47ff089622..1a8fdaa7375c 100644 --- a/drivers/net/wireless/libertas/decl.h +++ b/drivers/net/wireless/libertas/decl.h @@ -24,10 +24,8 @@ void lbs_send_tx_feedback(struct lbs_private *priv); int lbs_free_cmd_buffer(struct lbs_private *priv); -int lbs_cmd(struct lbs_private *priv, - u16 command, - void *cmd, int cmd_size, - void *resp, int *resp_size); +int lbs_cmd(struct lbs_private *priv, uint16_t command, void *cmd, int cmd_size, + int (*callback)(uint16_t, struct cmd_ds_command *, struct lbs_private *)); int lbs_prepare_and_send_command(struct lbs_private *priv, u16 cmd_no, |