diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-03-13 02:11:01 -0700 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-03-13 12:09:26 +0200 |
commit | a1536da255f16f42b8f069b2769134b32558b265 (patch) | |
tree | d2ba54c3a9069c3133456b8eeb9d04e58d428a8c /net/bluetooth/hci_request.c | |
parent | d7a5a11d7fa80beb43d5f7cb421c86f9b4d21200 (diff) | |
download | op-kernel-dev-a1536da255f16f42b8f069b2769134b32558b265.zip op-kernel-dev-a1536da255f16f42b8f069b2769134b32558b265.tar.gz |
Bluetooth: Introduce hci_dev_set_flag helper macro
Instead of manually coding set_bit on hdev->dev_flags all the time,
use hci_dev_set_flag helper macro.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r-- | net/bluetooth/hci_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index 42fa105..fd7b2a9 100644 --- a/net/bluetooth/hci_request.c +++ b/net/bluetooth/hci_request.c @@ -307,7 +307,7 @@ static void set_random_addr(struct hci_request *req, bdaddr_t *rpa) if (hci_dev_test_flag(hdev, HCI_LE_ADV) || hci_conn_hash_lookup_state(hdev, LE_LINK, BT_CONNECT)) { BT_DBG("Deferring random address update"); - set_bit(HCI_RPA_EXPIRED, &hdev->dev_flags); + hci_dev_set_flag(hdev, HCI_RPA_EXPIRED); return; } |