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
b8d21807
Commit
b8d21807
authored
May 24, 2008
by
David Woodhouse
Committed by
David Woodhouse
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcxhr: treat firmware data as const
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
93a9c901
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sound/pci/pcxhr/pcxhr_core.c
sound/pci/pcxhr/pcxhr_core.c
+2
-2
No files found.
sound/pci/pcxhr/pcxhr_core.c
View file @
b8d21807
...
@@ -269,7 +269,7 @@ int pcxhr_load_xilinx_binary(struct pcxhr_mgr *mgr, const struct firmware *xilin
...
@@ -269,7 +269,7 @@ int pcxhr_load_xilinx_binary(struct pcxhr_mgr *mgr, const struct firmware *xilin
unsigned
int
chipsc
;
unsigned
int
chipsc
;
unsigned
char
data
;
unsigned
char
data
;
unsigned
char
mask
;
unsigned
char
mask
;
unsigned
char
*
image
;
const
unsigned
char
*
image
;
/* test first xilinx */
/* test first xilinx */
chipsc
=
PCXHR_INPL
(
mgr
,
PCXHR_PLX_CHIPSC
);
chipsc
=
PCXHR_INPL
(
mgr
,
PCXHR_PLX_CHIPSC
);
...
@@ -316,7 +316,7 @@ static int pcxhr_download_dsp(struct pcxhr_mgr *mgr, const struct firmware *dsp)
...
@@ -316,7 +316,7 @@ static int pcxhr_download_dsp(struct pcxhr_mgr *mgr, const struct firmware *dsp)
int
err
;
int
err
;
unsigned
int
i
;
unsigned
int
i
;
unsigned
int
len
;
unsigned
int
len
;
unsigned
char
*
data
;
const
unsigned
char
*
data
;
unsigned
char
dummy
;
unsigned
char
dummy
;
/* check the length of boot image */
/* check the length of boot image */
snd_assert
(
dsp
->
size
>
0
,
return
-
EINVAL
);
snd_assert
(
dsp
->
size
>
0
,
return
-
EINVAL
);
...
...
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