summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/if_usb.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2008-05-23 18:37:51 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-07-10 14:25:57 +0100
commit6dfff895fa33b8576f82a38cee8abe5f73561e24 (patch)
treecd03327d3cda61e244193a2328a2d46542749ec9 /drivers/net/wireless/libertas/if_usb.c
parent6329d3021bcfa9038621e6e917d98929421d8ec8 (diff)
downloadlinux-stable-6dfff895fa33b8576f82a38cee8abe5f73561e24.tar.gz
linux-stable-6dfff895fa33b8576f82a38cee8abe5f73561e24.tar.bz2
linux-stable-6dfff895fa33b8576f82a38cee8abe5f73561e24.zip
libertas: treat firmware data as const
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/net/wireless/libertas/if_usb.c')
-rw-r--r--drivers/net/wireless/libertas/if_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index 36288b29abf7..4dcd4092e0f0 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -293,7 +293,7 @@ static void if_usb_disconnect(struct usb_interface *intf)
static int if_usb_send_fw_pkt(struct if_usb_card *cardp)
{
struct fwdata *fwdata = cardp->ep_out_buf;
- uint8_t *firmware = cardp->fw->data;
+ const uint8_t *firmware = cardp->fw->data;
/* If we got a CRC failure on the last block, back
up and retry it */
@@ -746,7 +746,7 @@ static int if_usb_issue_boot_command(struct if_usb_card *cardp, int ivalue)
* len image length
* @return 0 or -1
*/
-static int check_fwfile_format(uint8_t *data, uint32_t totlen)
+static int check_fwfile_format(const uint8_t *data, uint32_t totlen)
{
uint32_t bincmd, exit;
uint32_t blksize, offset, len;