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
Kirill Smelkov
linux
Commits
93a9c901
Commit
93a9c901
authored
May 24, 2008
by
David Woodhouse
Committed by
David Woodhouse
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riptide: treat firmware data as const
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
c2ba47d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sound/pci/riptide/riptide.c
sound/pci/riptide/riptide.c
+5
-5
No files found.
sound/pci/riptide/riptide.c
View file @
93a9c901
...
...
@@ -682,7 +682,7 @@ static union firmware_version firmware_versions[] = {
},
};
static
u32
atoh
(
unsigned
char
*
in
,
unsigned
int
len
)
static
u32
atoh
(
const
unsigned
char
*
in
,
unsigned
int
len
)
{
u32
sum
=
0
;
unsigned
int
mult
=
1
;
...
...
@@ -702,12 +702,12 @@ static u32 atoh(unsigned char *in, unsigned int len)
return
sum
;
}
static
int
senddata
(
struct
cmdif
*
cif
,
unsigned
char
*
in
,
u32
offset
)
static
int
senddata
(
struct
cmdif
*
cif
,
const
unsigned
char
*
in
,
u32
offset
)
{
u32
addr
;
u32
data
;
u32
i
;
unsigned
char
*
p
;
const
unsigned
char
*
p
;
i
=
atoh
(
&
in
[
1
],
2
);
addr
=
offset
+
atoh
(
&
in
[
3
],
4
);
...
...
@@ -726,10 +726,10 @@ static int senddata(struct cmdif *cif, unsigned char *in, u32 offset)
return
0
;
}
static
int
loadfirmware
(
struct
cmdif
*
cif
,
unsigned
char
*
img
,
static
int
loadfirmware
(
struct
cmdif
*
cif
,
const
unsigned
char
*
img
,
unsigned
int
size
)
{
unsigned
char
*
in
;
const
unsigned
char
*
in
;
u32
laddr
,
saddr
,
t
,
val
;
int
err
=
0
;
...
...
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