aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-03-13 05:11:02 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2015-03-13 06:09:27 -0400
commita358dc11d80ecaca443aa1fd2fd9d4f3425922e7 (patch)
treeb59d2b813fad4a63b3e33b94e4668b79a6a92885 /include/net
parenta1536da255f16f42b8f069b2769134b32558b265 (diff)
Bluetooth: Introduce hci_dev_clear_flag helper macro
Instead of manually coding clear_bit on hdev->dev_flags all the time, use hci_dev_clear_flag helper macro. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/hci_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index bc2a7e918da7..535b23c73c92 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -503,6 +503,7 @@ extern rwlock_t hci_dev_list_lock;
503extern struct mutex hci_cb_list_lock; 503extern struct mutex hci_cb_list_lock;
504 504
505#define hci_dev_set_flag(hdev, nr) set_bit((nr), &(hdev)->dev_flags) 505#define hci_dev_set_flag(hdev, nr) set_bit((nr), &(hdev)->dev_flags)
506#define hci_dev_clear_flag(hdev, nr) clear_bit((nr), &(hdev)->dev_flags)
506#define hci_dev_test_flag(hdev, nr) test_bit((nr), &(hdev)->dev_flags) 507#define hci_dev_test_flag(hdev, nr) test_bit((nr), &(hdev)->dev_flags)
507 508
508/* ----- HCI interface to upper protocols ----- */ 509/* ----- HCI interface to upper protocols ----- */