Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Linaro
qcomlt
kernel
Commits
afd636e9
Commit
afd636e9
authored
16 years ago
by
David Woodhouse
Committed by
David Woodhouse
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
irda-usb: treat firmware data as const
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
2f26e8af
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/net/irda/irda-usb.c
+6
-6
6 additions, 6 deletions
drivers/net/irda/irda-usb.c
with
6 additions
and
6 deletions
drivers/net/irda/irda-usb.c
+
6
−
6
View file @
afd636e9
...
...
@@ -1024,7 +1024,7 @@ static int irda_usb_is_receiving(struct irda_usb_cb *self)
* Upload firmware code to SigmaTel 421X IRDA-USB dongle
*/
static
int
stir421x_fw_upload
(
struct
irda_usb_cb
*
self
,
unsigned
char
*
patch
,
const
unsigned
char
*
patch
,
const
unsigned
int
patch_len
)
{
int
ret
=
-
ENOMEM
;
...
...
@@ -1073,11 +1073,11 @@ static int stir421x_fw_upload(struct irda_usb_cb *self,
*/
static
int
stir421x_patch_device
(
struct
irda_usb_cb
*
self
)
{
unsigned
int
i
;
int
ret
;
char
stir421x_fw_name
[
11
];
const
struct
firmware
*
fw
;
unsigned
char
*
fw_version_ptr
;
/* pointer to version string */
unsigned
int
i
;
int
ret
;
char
stir421x_fw_name
[
11
];
const
struct
firmware
*
fw
;
const
unsigned
char
*
fw_version_ptr
;
/* pointer to version string */
unsigned
long
fw_version
=
0
;
/*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment