Skip to content

Commit

Permalink
ipw2200: prepare for const netdev->dev_addr
Browse files Browse the repository at this point in the history
netdev->dev_addr will be come const soon, constify the argument
to command send to avoid compiler warnings.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211018235021.1279697-10-kuba@kernel.org
  • Loading branch information
Jakub Kicinski authored and Kalle Valo committed Oct 20, 2021
1 parent e3f9039 commit d8a416d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/intel/ipw2x00/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static int ipw_queue_tx_reclaim(struct ipw_priv *priv,
struct clx2_tx_queue *txq, int qindex);
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);

static void ipw_tx_queue_free(struct ipw_priv *);
Expand Down Expand Up @@ -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,
void *data)
const void *data)
{
struct host_cmd cmd = {
.cmd = command,
Expand Down Expand Up @@ -5033,7 +5033,7 @@ static int ipw_queue_tx_reclaim(struct ipw_priv *priv,
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)
{
struct clx2_tx_queue *txq = &priv->txq_cmd;
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/intel/ipw2x00/ipw2200.h
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@ struct host_cmd {
u8 cmd;
u8 len;
u16 reserved;
u32 *param;
const u32 *param;
} __packed; /* XXX */

struct cmdlog_host_cmd {
Expand Down

0 comments on commit d8a416d

Please sign in to comment.