Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
6dfff895
Commit
6dfff895
authored
May 23, 2008
by
David Woodhouse
Committed by
David Woodhouse
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libertas: treat firmware data as const
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
6329d302
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
drivers/net/wireless/libertas/if_cs.c
drivers/net/wireless/libertas/if_cs.c
+1
-1
drivers/net/wireless/libertas/if_sdio.c
drivers/net/wireless/libertas/if_sdio.c
+2
-2
drivers/net/wireless/libertas/if_usb.c
drivers/net/wireless/libertas/if_usb.c
+2
-2
No files found.
drivers/net/wireless/libertas/if_cs.c
View file @
6dfff895
...
...
@@ -122,7 +122,7 @@ static inline void if_cs_write16(struct if_cs_card *card, uint reg, u16 val)
static
inline
void
if_cs_write16_rep
(
struct
if_cs_card
*
card
,
uint
reg
,
void
*
buf
,
const
void
*
buf
,
unsigned
long
count
)
{
if
(
debug_output
)
...
...
drivers/net/wireless/libertas/if_sdio.c
View file @
6dfff895
...
...
@@ -392,7 +392,7 @@ static int if_sdio_prog_helper(struct if_sdio_card *card)
unsigned
long
timeout
;
u8
*
chunk_buffer
;
u32
chunk_size
;
u8
*
firmware
;
const
u8
*
firmware
;
size_t
size
;
lbs_deb_enter
(
LBS_DEB_SDIO
);
...
...
@@ -508,7 +508,7 @@ static int if_sdio_prog_real(struct if_sdio_card *card)
unsigned
long
timeout
;
u8
*
chunk_buffer
;
u32
chunk_size
;
u8
*
firmware
;
const
u8
*
firmware
;
size_t
size
,
req_size
;
lbs_deb_enter
(
LBS_DEB_SDIO
);
...
...
drivers/net/wireless/libertas/if_usb.c
View file @
6dfff895
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment