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>
This commit is contained in:
committed by
David S. Miller
parent
6ce4fd2a3a
commit
689442dca1
@@ -6,13 +6,11 @@
|
||||
#include "hostcmd.h"
|
||||
#include "dev.h"
|
||||
|
||||
#define lbs_cmd(priv, cmdnr, cmd, callback, callback_arg) \
|
||||
__lbs_cmd(priv, cmdnr, &(cmd).hdr, sizeof(cmd), \
|
||||
callback, callback_arg)
|
||||
#define lbs_cmd(priv, cmdnr, cmd, cb, cb_arg) \
|
||||
__lbs_cmd(priv, cmdnr, &(cmd)->hdr, sizeof(*(cmd)), cb, cb_arg)
|
||||
|
||||
#define lbs_cmd_with_response(priv, cmdnr, cmd) \
|
||||
__lbs_cmd(priv, cmdnr, &(cmd).hdr, sizeof(cmd), \
|
||||
lbs_cmd_copyback, (unsigned long) &cmd)
|
||||
#define lbs_cmd_with_response(priv, cmdnr, cmd) \
|
||||
lbs_cmd(priv, cmdnr, cmd, lbs_cmd_copyback, (unsigned long) (cmd))
|
||||
|
||||
int __lbs_cmd(struct lbs_private *priv, uint16_t command,
|
||||
struct cmd_header *in_cmd, int in_cmd_size,
|
||||
|
Reference in New Issue
Block a user