projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f160ebc
)
p54: treat firmware data as const
author
David Woodhouse
<dwmw2@infradead.org>
Fri, 23 May 2008 23:08:55 +0000
(
00:08
+0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Thu, 10 Jul 2008 13:26:21 +0000
(14:26 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/net/wireless/p54/p54usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/p54/p54usb.c
b/drivers/net/wireless/p54/p54usb.c
index 1610a7308c1dd02410782bd69b441996a448e849..815c095ef7971361e59d3a95648aee811dea6d09 100644
(file)
--- a/
drivers/net/wireless/p54/p54usb.c
+++ b/
drivers/net/wireless/p54/p54usb.c
@@
-376,7
+376,8
@@
static int p54u_upload_firmware_3887(struct ieee80211_hw *dev)
const struct firmware *fw_entry = NULL;
int err, alen;
u8 carry = 0;
- u8 *buf, *tmp, *data;
+ u8 *buf, *tmp;
+ const u8 *data;
unsigned int left, remains, block_size;
struct x2_header *hdr;
unsigned long timeout;
@@
-523,7
+524,7
@@
static int p54u_upload_firmware_net2280(struct ieee80211_hw *dev)
void *buf;
__le32 reg;
unsigned int remains, offset;
- u8 *data;
+
const
u8 *data;
buf = kmalloc(512, GFP_KERNEL);
if (!buf) {