aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2015-11-10 02:44:55 -0500
committerMarcel Holtmann <marcel@holtmann.org>2015-11-19 11:50:28 -0500
commitb504430c868c2979d2dbee9be051e425fdeb36ac (patch)
tree266682dfcf7c5f9afc0a61232effd5cce81debe2 /net/bluetooth/hci_request.h
parentbe91cd05704d5a547de086d0e61c249ee62d2e13 (diff)
Bluetooth: Add 'sync' specifier to synchronous request APIs
To make it clear which HCI request APIs target specifically synchronous requests, add 'sync' to the API names. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_request.h')
-rw-r--r--net/bluetooth/hci_request.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/hci_request.h b/net/bluetooth/hci_request.h
index 6e6bad4ca4ab..5b3240cf9eb7 100644
--- a/net/bluetooth/hci_request.h
+++ b/net/bluetooth/hci_request.h
@@ -20,8 +20,8 @@
20 SOFTWARE IS DISCLAIMED. 20 SOFTWARE IS DISCLAIMED.
21*/ 21*/
22 22
23#define hci_req_lock(d) mutex_lock(&d->req_lock) 23#define hci_req_sync_lock(hdev) mutex_lock(&hdev->req_lock)
24#define hci_req_unlock(d) mutex_unlock(&d->req_lock) 24#define hci_req_sync_unlock(hdev) mutex_unlock(&hdev->req_lock)
25 25
26struct hci_request { 26struct hci_request {
27 struct hci_dev *hdev; 27 struct hci_dev *hdev;
@@ -50,7 +50,7 @@ int hci_req_sync(struct hci_dev *hdev, void (*req)(struct hci_request *req,
50int __hci_req_sync(struct hci_dev *hdev, void (*func)(struct hci_request *req, 50int __hci_req_sync(struct hci_dev *hdev, void (*func)(struct hci_request *req,
51 unsigned long opt), 51 unsigned long opt),
52 unsigned long opt, __u32 timeout); 52 unsigned long opt, __u32 timeout);
53void hci_req_cancel(struct hci_dev *hdev, int err); 53void hci_req_sync_cancel(struct hci_dev *hdev, int err);
54 54
55struct sk_buff *hci_prepare_cmd(struct hci_dev *hdev, u16 opcode, u32 plen, 55struct sk_buff *hci_prepare_cmd(struct hci_dev *hdev, u16 opcode, u32 plen,
56 const void *param); 56 const void *param);