Commit 8b72eb4333aba692a16339acf8a74d84b10d3568

Authored by David Woodhouse
Committed by David Woodhouse
1 parent f160ebcbeb

p54: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>

Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff

drivers/net/wireless/p54/p54usb.c
... ... @@ -376,7 +376,8 @@
376 376 const struct firmware *fw_entry = NULL;
377 377 int err, alen;
378 378 u8 carry = 0;
379   - u8 *buf, *tmp, *data;
  379 + u8 *buf, *tmp;
  380 + const u8 *data;
380 381 unsigned int left, remains, block_size;
381 382 struct x2_header *hdr;
382 383 unsigned long timeout;
... ... @@ -523,7 +524,7 @@
523 524 void *buf;
524 525 __le32 reg;
525 526 unsigned int remains, offset;
526   - u8 *data;
  527 + const u8 *data;
527 528  
528 529 buf = kmalloc(512, GFP_KERNEL);
529 530 if (!buf) {