OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b7712
)
Bluetooth: Use BIT(n) macro instead of manually encoding (1 << n)
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 15 Mar 2015 02:28:06 +0000
(19:28 -0700)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Sun, 15 Mar 2015 08:00:15 +0000
(10:00 +0200)
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>
include/net/bluetooth/hci_core.h
patch
|
blob
|
history
diff --git
a/include/net/bluetooth/hci_core.h
b/include/net/bluetooth/hci_core.h
index
3546789
..
ce94bcb
100644
(file)
--- 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);
void hci_sock_dev_event(struct hci_dev *hdev, int event);
-#define HCI_MGMT_VAR_LEN
(1 <<
0)
-#define HCI_MGMT_NO_HDEV
(1 <<
1)
-#define HCI_MGMT_UNTRUSTED
(1 <<
2)
-#define HCI_MGMT_UNCONFIGURED
(1 <<
3)
+#define HCI_MGMT_VAR_LEN
BIT(
0)
+#define HCI_MGMT_NO_HDEV
BIT(
1)
+#define HCI_MGMT_UNTRUSTED
BIT(
2)
+#define HCI_MGMT_UNCONFIGURED
BIT(
3)
struct hci_mgmt_handler {
int (*func) (struct sock *sk, struct hci_dev *hdev, void *data,