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
8187b4fb
Commit
8187b4fb
authored
May 23, 2008
by
David Woodhouse
Committed by
David Woodhouse
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluetooth: treat firmware data as const
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
6dfff895
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
drivers/bluetooth/bfusb.c
drivers/bluetooth/bfusb.c
+2
-1
drivers/bluetooth/bt3c_cs.c
drivers/bluetooth/bt3c_cs.c
+2
-1
No files found.
drivers/bluetooth/bfusb.c
View file @
8187b4fb
...
...
@@ -566,7 +566,8 @@ static int bfusb_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long arg
return
-
ENOIOCTLCMD
;
}
static
int
bfusb_load_firmware
(
struct
bfusb_data
*
data
,
unsigned
char
*
firmware
,
int
count
)
static
int
bfusb_load_firmware
(
struct
bfusb_data
*
data
,
const
unsigned
char
*
firmware
,
int
count
)
{
unsigned
char
*
buf
;
int
err
,
pipe
,
len
,
size
,
sent
=
0
;
...
...
drivers/bluetooth/bt3c_cs.c
View file @
8187b4fb
...
...
@@ -470,7 +470,8 @@ static int bt3c_hci_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long
/* ======================== Card services HCI interaction ======================== */
static
int
bt3c_load_firmware
(
bt3c_info_t
*
info
,
unsigned
char
*
firmware
,
int
count
)
static
int
bt3c_load_firmware
(
bt3c_info_t
*
info
,
const
unsigned
char
*
firmware
,
int
count
)
{
char
*
ptr
=
(
char
*
)
firmware
;
char
b
[
9
];
...
...
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