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
f160ebcb
Commit
f160ebcb
authored
May 24, 2008
by
David Woodhouse
Committed by
David Woodhouse
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt2x00: treat firmware data as const
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
45ef0bdb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00.h
+2
-2
drivers/net/wireless/rt2x00/rt2x00pci.h
drivers/net/wireless/rt2x00/rt2x00pci.h
+1
-1
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt61pci.c
+2
-2
drivers/net/wireless/rt2x00/rt73usb.c
drivers/net/wireless/rt2x00/rt73usb.c
+3
-3
No files found.
drivers/net/wireless/rt2x00/rt2x00.h
View file @
f160ebcb
...
@@ -511,8 +511,8 @@ struct rt2x00lib_ops {
...
@@ -511,8 +511,8 @@ struct rt2x00lib_ops {
*/
*/
int
(
*
probe_hw
)
(
struct
rt2x00_dev
*
rt2x00dev
);
int
(
*
probe_hw
)
(
struct
rt2x00_dev
*
rt2x00dev
);
char
*
(
*
get_firmware_name
)
(
struct
rt2x00_dev
*
rt2x00dev
);
char
*
(
*
get_firmware_name
)
(
struct
rt2x00_dev
*
rt2x00dev
);
u16
(
*
get_firmware_crc
)
(
void
*
data
,
const
size_t
len
);
u16
(
*
get_firmware_crc
)
(
const
void
*
data
,
const
size_t
len
);
int
(
*
load_firmware
)
(
struct
rt2x00_dev
*
rt2x00dev
,
void
*
data
,
int
(
*
load_firmware
)
(
struct
rt2x00_dev
*
rt2x00dev
,
const
void
*
data
,
const
size_t
len
);
const
size_t
len
);
/*
/*
...
...
drivers/net/wireless/rt2x00/rt2x00pci.h
View file @
f160ebcb
...
@@ -82,7 +82,7 @@ static inline void rt2x00pci_register_write(struct rt2x00_dev *rt2x00dev,
...
@@ -82,7 +82,7 @@ static inline void rt2x00pci_register_write(struct rt2x00_dev *rt2x00dev,
static
inline
void
static
inline
void
rt2x00pci_register_multiwrite
(
struct
rt2x00_dev
*
rt2x00dev
,
rt2x00pci_register_multiwrite
(
struct
rt2x00_dev
*
rt2x00dev
,
const
unsigned
long
offset
,
const
unsigned
long
offset
,
void
*
value
,
const
u16
length
)
const
void
*
value
,
const
u16
length
)
{
{
memcpy_toio
(
rt2x00dev
->
csr
.
base
+
offset
,
value
,
length
);
memcpy_toio
(
rt2x00dev
->
csr
.
base
+
offset
,
value
,
length
);
}
}
...
...
drivers/net/wireless/rt2x00/rt61pci.c
View file @
f160ebcb
...
@@ -915,7 +915,7 @@ static char *rt61pci_get_firmware_name(struct rt2x00_dev *rt2x00dev)
...
@@ -915,7 +915,7 @@ static char *rt61pci_get_firmware_name(struct rt2x00_dev *rt2x00dev)
return
fw_name
;
return
fw_name
;
}
}
static
u16
rt61pci_get_firmware_crc
(
void
*
data
,
const
size_t
len
)
static
u16
rt61pci_get_firmware_crc
(
const
void
*
data
,
const
size_t
len
)
{
{
u16
crc
;
u16
crc
;
...
@@ -932,7 +932,7 @@ static u16 rt61pci_get_firmware_crc(void *data, const size_t len)
...
@@ -932,7 +932,7 @@ static u16 rt61pci_get_firmware_crc(void *data, const size_t len)
return
crc
;
return
crc
;
}
}
static
int
rt61pci_load_firmware
(
struct
rt2x00_dev
*
rt2x00dev
,
void
*
data
,
static
int
rt61pci_load_firmware
(
struct
rt2x00_dev
*
rt2x00dev
,
const
void
*
data
,
const
size_t
len
)
const
size_t
len
)
{
{
int
i
;
int
i
;
...
...
drivers/net/wireless/rt2x00/rt73usb.c
View file @
f160ebcb
...
@@ -856,7 +856,7 @@ static char *rt73usb_get_firmware_name(struct rt2x00_dev *rt2x00dev)
...
@@ -856,7 +856,7 @@ static char *rt73usb_get_firmware_name(struct rt2x00_dev *rt2x00dev)
return
FIRMWARE_RT2571
;
return
FIRMWARE_RT2571
;
}
}
static
u16
rt73usb_get_firmware_crc
(
void
*
data
,
const
size_t
len
)
static
u16
rt73usb_get_firmware_crc
(
const
void
*
data
,
const
size_t
len
)
{
{
u16
crc
;
u16
crc
;
...
@@ -873,13 +873,13 @@ static u16 rt73usb_get_firmware_crc(void *data, const size_t len)
...
@@ -873,13 +873,13 @@ static u16 rt73usb_get_firmware_crc(void *data, const size_t len)
return
crc
;
return
crc
;
}
}
static
int
rt73usb_load_firmware
(
struct
rt2x00_dev
*
rt2x00dev
,
void
*
data
,
static
int
rt73usb_load_firmware
(
struct
rt2x00_dev
*
rt2x00dev
,
const
void
*
data
,
const
size_t
len
)
const
size_t
len
)
{
{
unsigned
int
i
;
unsigned
int
i
;
int
status
;
int
status
;
u32
reg
;
u32
reg
;
char
*
ptr
=
data
;
c
onst
c
har
*
ptr
=
data
;
char
*
cache
;
char
*
cache
;
int
buflen
;
int
buflen
;
int
timeout
;
int
timeout
;
...
...
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