Commit 8b72eb43 authored by David Woodhouse's avatar David Woodhouse Committed by David Woodhouse

p54: treat firmware data as const

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent f160ebcb
...@@ -376,7 +376,8 @@ static int p54u_upload_firmware_3887(struct ieee80211_hw *dev) ...@@ -376,7 +376,8 @@ static int p54u_upload_firmware_3887(struct ieee80211_hw *dev)
const struct firmware *fw_entry = NULL; const struct firmware *fw_entry = NULL;
int err, alen; int err, alen;
u8 carry = 0; u8 carry = 0;
u8 *buf, *tmp, *data; u8 *buf, *tmp;
const u8 *data;
unsigned int left, remains, block_size; unsigned int left, remains, block_size;
struct x2_header *hdr; struct x2_header *hdr;
unsigned long timeout; unsigned long timeout;
...@@ -523,7 +524,7 @@ static int p54u_upload_firmware_net2280(struct ieee80211_hw *dev) ...@@ -523,7 +524,7 @@ static int p54u_upload_firmware_net2280(struct ieee80211_hw *dev)
void *buf; void *buf;
__le32 reg; __le32 reg;
unsigned int remains, offset; unsigned int remains, offset;
u8 *data; const u8 *data;
buf = kmalloc(512, GFP_KERNEL); buf = kmalloc(512, GFP_KERNEL);
if (!buf) { if (!buf) {
......
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