diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-05-23 03:04:20 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-04 23:34:08 -0400 |
commit | c3c7ea65941a0b7a4f1b9655e7aaaab6ce1874d2 (patch) | |
tree | 09643091d66605256524b9c601cd08edf01a4a26 /include/net/bluetooth/hci.h | |
parent | fc5fef615a963c8b13abf0bbc2a8e8d7c3fd1ffb (diff) |
Bluetooth: Fix coding style in include/net/bluetooth
Fix all warning and errors reported by checkpatch but license trailing
whitespace and bdaddr_t definition.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci.h')
-rw-r--r-- | include/net/bluetooth/hci.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 0bc5555510f3..5de351e49d49 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -1309,12 +1309,12 @@ static inline struct hci_sco_hdr *hci_sco_hdr(const struct sk_buff *skb) | |||
1309 | } | 1309 | } |
1310 | 1310 | ||
1311 | /* Command opcode pack/unpack */ | 1311 | /* Command opcode pack/unpack */ |
1312 | #define hci_opcode_pack(ogf, ocf) (__u16) ((ocf & 0x03ff)|(ogf << 10)) | 1312 | #define hci_opcode_pack(ogf, ocf) ((__u16) ((ocf & 0x03ff)|(ogf << 10))) |
1313 | #define hci_opcode_ogf(op) (op >> 10) | 1313 | #define hci_opcode_ogf(op) (op >> 10) |
1314 | #define hci_opcode_ocf(op) (op & 0x03ff) | 1314 | #define hci_opcode_ocf(op) (op & 0x03ff) |
1315 | 1315 | ||
1316 | /* ACL handle and flags pack/unpack */ | 1316 | /* ACL handle and flags pack/unpack */ |
1317 | #define hci_handle_pack(h, f) (__u16) ((h & 0x0fff)|(f << 12)) | 1317 | #define hci_handle_pack(h, f) ((__u16) ((h & 0x0fff)|(f << 12))) |
1318 | #define hci_handle(h) (h & 0x0fff) | 1318 | #define hci_handle(h) (h & 0x0fff) |
1319 | #define hci_flags(h) (h >> 12) | 1319 | #define hci_flags(h) (h >> 12) |
1320 | 1320 | ||