Bluetooth: Introduce hci_dev_test_and_clear_flag helper macro
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 13 Mar 2015 09:11:05 +0000 (02:11 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 13 Mar 2015 10:09:32 +0000 (12:09 +0200)
commita69d89272698d1c31ccb78348562af6461cf1eb7
tree1474d52857b9bbc0af82385754037e5633f24b1d
parent516018a9c057a7c179dd6b4df917a6f5d43b3547
Bluetooth: Introduce hci_dev_test_and_clear_flag helper macro

Instead of manually coding test_and_clear_bit on hdev->dev_flags all the
time, use hci_dev_test_and_clear_flag helper macro.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c
net/bluetooth/hci_request.c
net/bluetooth/mgmt.c