diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-12 16:00:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:07:02 -0500 |
commit | 689442dca16eb27fee19074499d42845fe54c12a (patch) | |
tree | 21346cef514f95ec2a842838dbe85bc09bef26fc /drivers/net/wireless/libertas/cmd.h | |
parent | 6ce4fd2a3a84e64a27c42aaa7de6e0e85dee3573 (diff) |
libertas: switch lbs_cmd() to take a _pointer_ to the command structure
This way, it looks more like a normal function.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.h')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/cmd.h b/drivers/net/wireless/libertas/cmd.h index 8d72c7e25250..e800295479ba 100644 --- a/drivers/net/wireless/libertas/cmd.h +++ b/drivers/net/wireless/libertas/cmd.h | |||
@@ -6,13 +6,11 @@ | |||
6 | #include "hostcmd.h" | 6 | #include "hostcmd.h" |
7 | #include "dev.h" | 7 | #include "dev.h" |
8 | 8 | ||
9 | #define lbs_cmd(priv, cmdnr, cmd, callback, callback_arg) \ | 9 | #define lbs_cmd(priv, cmdnr, cmd, cb, cb_arg) \ |
10 | __lbs_cmd(priv, cmdnr, &(cmd).hdr, sizeof(cmd), \ | 10 | __lbs_cmd(priv, cmdnr, &(cmd)->hdr, sizeof(*(cmd)), cb, cb_arg) |
11 | callback, callback_arg) | ||
12 | 11 | ||
13 | #define lbs_cmd_with_response(priv, cmdnr, cmd) \ | 12 | #define lbs_cmd_with_response(priv, cmdnr, cmd) \ |
14 | __lbs_cmd(priv, cmdnr, &(cmd).hdr, sizeof(cmd), \ | 13 | lbs_cmd(priv, cmdnr, cmd, lbs_cmd_copyback, (unsigned long) (cmd)) |
15 | lbs_cmd_copyback, (unsigned long) &cmd) | ||
16 | 14 | ||
17 | int __lbs_cmd(struct lbs_private *priv, uint16_t command, | 15 | int __lbs_cmd(struct lbs_private *priv, uint16_t command, |
18 | struct cmd_header *in_cmd, int in_cmd_size, | 16 | struct cmd_header *in_cmd, int in_cmd_size, |