projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45db810
)
Bluetooth: Use lmp_rswitch_capable where applicable
author
Andre Guedes
<andre.guedes@openbossa.org>
Tue, 24 Jul 2012 18:03:50 +0000
(15:03 -0300)
committer
Gustavo Padovan
<gustavo.padovan@collabora.co.uk>
Mon, 6 Aug 2012 18:02:57 +0000
(15:02 -0300)
This patch replaces all LMP_RSWITCH bit checking by the helper macro
lmp_rswitch_capable.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_event.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_event.c
b/net/bluetooth/hci_event.c
index 5722a388ada18590567f23b145023e53f4603ca4..5c71c85c87a742de0e4f732f4dc3b1a267eb1b46 100644
(file)
--- a/
net/bluetooth/hci_event.c
+++ b/
net/bluetooth/hci_event.c
@@
-623,7
+623,7
@@
static void hci_setup_link_policy(struct hci_dev *hdev)
struct hci_cp_write_def_link_policy cp;
u16 link_policy = 0;
- if (
hdev->features[0] & LMP_RSWITCH
)
+ if (
lmp_rswitch_capable(hdev)
)
link_policy |= HCI_LP_RSWITCH;
if (hdev->features[0] & LMP_HOLD)
link_policy |= HCI_LP_HOLD;