Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hidp: constify hidp_connection_add()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 53522148 89c0c24b

+6 -6
+5 -5
net/bluetooth/hidp/core.c
··· 649 649 } 650 650 651 651 static int hidp_setup_input(struct hidp_session *session, 652 - struct hidp_connadd_req *req) 652 + const struct hidp_connadd_req *req) 653 653 { 654 654 struct input_dev *input; 655 655 int i; ··· 748 748 /* This function sets up the hid device. It does not add it 749 749 to the HID system. That is done in hidp_add_connection(). */ 750 750 static int hidp_setup_hid(struct hidp_session *session, 751 - struct hidp_connadd_req *req) 751 + const struct hidp_connadd_req *req) 752 752 { 753 753 struct hid_device *hid; 754 754 int err; ··· 807 807 808 808 /* initialize session devices */ 809 809 static int hidp_session_dev_init(struct hidp_session *session, 810 - struct hidp_connadd_req *req) 810 + const struct hidp_connadd_req *req) 811 811 { 812 812 int ret; 813 813 ··· 906 906 static int hidp_session_new(struct hidp_session **out, const bdaddr_t *bdaddr, 907 907 struct socket *ctrl_sock, 908 908 struct socket *intr_sock, 909 - struct hidp_connadd_req *req, 909 + const struct hidp_connadd_req *req, 910 910 struct l2cap_conn *conn) 911 911 { 912 912 struct hidp_session *session; ··· 1335 1335 return 0; 1336 1336 } 1337 1337 1338 - int hidp_connection_add(struct hidp_connadd_req *req, 1338 + int hidp_connection_add(const struct hidp_connadd_req *req, 1339 1339 struct socket *ctrl_sock, 1340 1340 struct socket *intr_sock) 1341 1341 {
+1 -1
net/bluetooth/hidp/hidp.h
··· 122 122 struct hidp_conninfo __user *ci; 123 123 }; 124 124 125 - int hidp_connection_add(struct hidp_connadd_req *req, struct socket *ctrl_sock, struct socket *intr_sock); 125 + int hidp_connection_add(const struct hidp_connadd_req *req, struct socket *ctrl_sock, struct socket *intr_sock); 126 126 int hidp_connection_del(struct hidp_conndel_req *req); 127 127 int hidp_get_connlist(struct hidp_connlist_req *req); 128 128 int hidp_get_conninfo(struct hidp_conninfo *ci);