Commit d8a416de authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Kalle Valo

ipw2200: prepare for const netdev->dev_addr

netdev->dev_addr will be come const soon, constify the argument
to command send to avoid compiler warnings.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211018235021.1279697-10-kuba@kernel.org
parent e3f90395
...@@ -199,7 +199,7 @@ static int ipw_queue_tx_reclaim(struct ipw_priv *priv, ...@@ -199,7 +199,7 @@ static int ipw_queue_tx_reclaim(struct ipw_priv *priv,
struct clx2_tx_queue *txq, int qindex); struct clx2_tx_queue *txq, int qindex);
static int ipw_queue_reset(struct ipw_priv *priv); static int ipw_queue_reset(struct ipw_priv *priv);
static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, void *buf, static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, const void *buf,
int len, int sync); int len, int sync);
static void ipw_tx_queue_free(struct ipw_priv *); static void ipw_tx_queue_free(struct ipw_priv *);
...@@ -2264,7 +2264,7 @@ static int ipw_send_cmd_simple(struct ipw_priv *priv, u8 command) ...@@ -2264,7 +2264,7 @@ static int ipw_send_cmd_simple(struct ipw_priv *priv, u8 command)
} }
static int ipw_send_cmd_pdu(struct ipw_priv *priv, u8 command, u8 len, static int ipw_send_cmd_pdu(struct ipw_priv *priv, u8 command, u8 len,
void *data) const void *data)
{ {
struct host_cmd cmd = { struct host_cmd cmd = {
.cmd = command, .cmd = command,
...@@ -5033,7 +5033,7 @@ static int ipw_queue_tx_reclaim(struct ipw_priv *priv, ...@@ -5033,7 +5033,7 @@ static int ipw_queue_tx_reclaim(struct ipw_priv *priv,
return used; return used;
} }
static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, void *buf, static int ipw_queue_tx_hcmd(struct ipw_priv *priv, int hcmd, const void *buf,
int len, int sync) int len, int sync)
{ {
struct clx2_tx_queue *txq = &priv->txq_cmd; struct clx2_tx_queue *txq = &priv->txq_cmd;
......
...@@ -1945,7 +1945,7 @@ struct host_cmd { ...@@ -1945,7 +1945,7 @@ struct host_cmd {
u8 cmd; u8 cmd;
u8 len; u8 len;
u16 reserved; u16 reserved;
u32 *param; const u32 *param;
} __packed; /* XXX */ } __packed; /* XXX */
struct cmdlog_host_cmd { struct cmdlog_host_cmd {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment