Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
f61e761e
Commit
f61e761e
authored
May 23, 2008
by
David Woodhouse
Committed by
David Woodhouse
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cyclades: treat firmware data as const
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
8187b4fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/char/cyclades.c
drivers/char/cyclades.c
+5
-5
No files found.
drivers/char/cyclades.c
View file @
f61e761e
...
...
@@ -4668,7 +4668,7 @@ static inline int __devinit cyc_isfwstr(const char *str, unsigned int size)
return
0
;
}
static
inline
void
__devinit
cyz_fpga_copy
(
void
__iomem
*
fpga
,
u8
*
data
,
static
inline
void
__devinit
cyz_fpga_copy
(
void
__iomem
*
fpga
,
const
u8
*
data
,
unsigned
int
size
)
{
for
(;
size
>
0
;
size
--
)
{
...
...
@@ -4701,10 +4701,10 @@ static int __devinit __cyz_load_fw(const struct firmware *fw,
const
char
*
name
,
const
u32
mailbox
,
void
__iomem
*
base
,
void
__iomem
*
fpga
)
{
void
*
ptr
=
fw
->
data
;
struct
zfile_header
*
h
=
ptr
;
struct
zfile_config
*
c
,
*
cs
;
struct
zfile_block
*
b
,
*
bs
;
const
void
*
ptr
=
fw
->
data
;
const
struct
zfile_header
*
h
=
ptr
;
const
struct
zfile_config
*
c
,
*
cs
;
const
struct
zfile_block
*
b
,
*
bs
;
unsigned
int
a
,
tmp
,
len
=
fw
->
size
;
#define BAD_FW KERN_ERR "Bad firmware: "
if
(
len
<
sizeof
(
*
h
))
{
...
...
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