Commit 3e90dc86 authored by Gustavo F. Padovan's avatar Gustavo F. Padovan

Bluetooth: Rename hidp_find_connection()

hidp_get_connection() makes more sense because we hold a reference to the
connection inside this function.
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 81b25cd0
...@@ -783,7 +783,7 @@ static int hidp_session(void *arg) ...@@ -783,7 +783,7 @@ static int hidp_session(void *arg)
return 0; return 0;
} }
static struct hci_conn *hidp_find_connection(struct hidp_session *session) static struct hci_conn *hidp_get_connection(struct hidp_session *session)
{ {
bdaddr_t *src = &bt_sk(session->ctrl_sock->sk)->src; bdaddr_t *src = &bt_sk(session->ctrl_sock->sk)->src;
bdaddr_t *dst = &bt_sk(session->ctrl_sock->sk)->dst; bdaddr_t *dst = &bt_sk(session->ctrl_sock->sk)->dst;
...@@ -995,7 +995,7 @@ int hidp_add_connection(struct hidp_connadd_req *req, struct socket *ctrl_sock, ...@@ -995,7 +995,7 @@ int hidp_add_connection(struct hidp_connadd_req *req, struct socket *ctrl_sock,
return -ENOMEM; return -ENOMEM;
} }
session->conn = hidp_find_connection(session); session->conn = hidp_get_connection(session);
if (!session->conn) { if (!session->conn) {
err = -ENOTCONN; err = -ENOTCONN;
goto failed; goto failed;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment