mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
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: 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
This commit is contained in:
parent
e3f90395c4
commit
d8a416def4
2 changed files with 4 additions and 4 deletions
|
@ -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 *);
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
|
|
@ -1945,7 +1945,7 @@ struct host_cmd {
|
|||
u8 cmd;
|
||||
u8 len;
|
||||
u16 reserved;
|
||||
u32 *param;
|
||||
const u32 *param;
|
||||
} __packed; /* XXX */
|
||||
|
||||
struct cmdlog_host_cmd {
|
||||
|
|
Loading…
Reference in a new issue