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
53522148
Commit
53522148
authored
Aug 16, 2018
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hidp: constify hidp_connection_add()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
89c0c24b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
net/bluetooth/hidp/core.c
net/bluetooth/hidp/core.c
+5
-5
net/bluetooth/hidp/hidp.h
net/bluetooth/hidp/hidp.h
+1
-1
No files found.
net/bluetooth/hidp/core.c
View file @
53522148
...
...
@@ -649,7 +649,7 @@ static void hidp_process_transmit(struct hidp_session *session,
}
static
int
hidp_setup_input
(
struct
hidp_session
*
session
,
struct
hidp_connadd_req
*
req
)
const
struct
hidp_connadd_req
*
req
)
{
struct
input_dev
*
input
;
int
i
;
...
...
@@ -748,7 +748,7 @@ EXPORT_SYMBOL_GPL(hidp_hid_driver);
/* This function sets up the hid device. It does not add it
to the HID system. That is done in hidp_add_connection(). */
static
int
hidp_setup_hid
(
struct
hidp_session
*
session
,
struct
hidp_connadd_req
*
req
)
const
struct
hidp_connadd_req
*
req
)
{
struct
hid_device
*
hid
;
int
err
;
...
...
@@ -807,7 +807,7 @@ static int hidp_setup_hid(struct hidp_session *session,
/* initialize session devices */
static
int
hidp_session_dev_init
(
struct
hidp_session
*
session
,
struct
hidp_connadd_req
*
req
)
const
struct
hidp_connadd_req
*
req
)
{
int
ret
;
...
...
@@ -906,7 +906,7 @@ static void hidp_session_dev_work(struct work_struct *work)
static
int
hidp_session_new
(
struct
hidp_session
**
out
,
const
bdaddr_t
*
bdaddr
,
struct
socket
*
ctrl_sock
,
struct
socket
*
intr_sock
,
struct
hidp_connadd_req
*
req
,
const
struct
hidp_connadd_req
*
req
,
struct
l2cap_conn
*
conn
)
{
struct
hidp_session
*
session
;
...
...
@@ -1335,7 +1335,7 @@ static int hidp_verify_sockets(struct socket *ctrl_sock,
return
0
;
}
int
hidp_connection_add
(
struct
hidp_connadd_req
*
req
,
int
hidp_connection_add
(
const
struct
hidp_connadd_req
*
req
,
struct
socket
*
ctrl_sock
,
struct
socket
*
intr_sock
)
{
...
...
net/bluetooth/hidp/hidp.h
View file @
53522148
...
...
@@ -122,7 +122,7 @@ struct hidp_connlist_req {
struct
hidp_conninfo
__user
*
ci
;
};
int
hidp_connection_add
(
struct
hidp_connadd_req
*
req
,
struct
socket
*
ctrl_sock
,
struct
socket
*
intr_sock
);
int
hidp_connection_add
(
const
struct
hidp_connadd_req
*
req
,
struct
socket
*
ctrl_sock
,
struct
socket
*
intr_sock
);
int
hidp_connection_del
(
struct
hidp_conndel_req
*
req
);
int
hidp_get_connlist
(
struct
hidp_connlist_req
*
req
);
int
hidp_get_conninfo
(
struct
hidp_conninfo
*
ci
);
...
...
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