Bluetooth: Rename hidp_find_connection()
authorGustavo F. Padovan <padovan@profusion.mobi>
Fri, 7 Oct 2011 04:29:51 +0000 (01:29 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Fri, 7 Oct 2011 04:44:00 +0000 (01:44 -0300)
hidp_get_connection() makes more sense because we hold a reference to the
connection inside this function.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hidp/core.c

index fbbf8029502091e9c6afeef0efa1784485f5f25b..217ef476156049378323ef6f685ad824ac110d3d 100644 (file)
@@ -783,7 +783,7 @@ static int hidp_session(void *arg)
        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 *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,
                return -ENOMEM;
        }
 
-       session->conn = hidp_find_connection(session);
+       session->conn = hidp_get_connection(session);
        if (!session->conn) {
                err = -ENOTCONN;
                goto failed;