diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-03-14 22:28:06 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-03-15 04:00:15 -0400 |
commit | a958452aa40c57a0407ecf84ba1bfa31ad532313 (patch) | |
tree | 897ccaedae7789fe61b88d3972845854b80e4f94 /include/net | |
parent | f6b7712eb660c50877a56772908326cd31125b21 (diff) |
Bluetooth: Use BIT(n) macro instead of manually encoding (1 << n)
The flags for the management command table used manual encoding of
bits in the form of (1 << n). It is however preferred to use BIT(n)
macro instead.
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.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 3546789c1616..ce94bcb33600 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -1289,10 +1289,10 @@ void hci_send_to_monitor(struct hci_dev *hdev, struct sk_buff *skb); | |||
1289 | 1289 | ||
1290 | void hci_sock_dev_event(struct hci_dev *hdev, int event); | 1290 | void hci_sock_dev_event(struct hci_dev *hdev, int event); |
1291 | 1291 | ||
1292 | #define HCI_MGMT_VAR_LEN (1 << 0) | 1292 | #define HCI_MGMT_VAR_LEN BIT(0) |
1293 | #define HCI_MGMT_NO_HDEV (1 << 1) | 1293 | #define HCI_MGMT_NO_HDEV BIT(1) |
1294 | #define HCI_MGMT_UNTRUSTED (1 << 2) | 1294 | #define HCI_MGMT_UNTRUSTED BIT(2) |
1295 | #define HCI_MGMT_UNCONFIGURED (1 << 3) | 1295 | #define HCI_MGMT_UNCONFIGURED BIT(3) |
1296 | 1296 | ||
1297 | struct hci_mgmt_handler { | 1297 | struct hci_mgmt_handler { |
1298 | int (*func) (struct sock *sk, struct hci_dev *hdev, void *data, | 1298 | int (*func) (struct sock *sk, struct hci_dev *hdev, void *data, |