Bluetooth: Use lmp_rswitch_capable where applicable

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 29 10:59:21 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=9f92ebf6c72de444801ab4a922965bd1f90834ae
Commit:     9f92ebf6c72de444801ab4a922965bd1f90834ae
Parent:     45db810fb71a94926c10f4dbbb5ca7913983f83b
Author:     Andre Guedes <andre.guedes at openbossa.org>
AuthorDate: Tue Jul 24 15:03:50 2012 -0300
Committer:  Gustavo Padovan <gustavo.padovan at collabora.co.uk>
CommitDate: Mon Aug 6 15:02:57 2012 -0300

    Bluetooth: Use lmp_rswitch_capable where applicable
    
    This patch replaces all LMP_RSWITCH bit checking by the helper macro
    lmp_rswitch_capable.
    
    Signed-off-by: Andre Guedes <andre.guedes at openbossa.org>
    Signed-off-by: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
---
 net/bluetooth/hci_event.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 5722a38..5c71c85 100644
--- 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;



More information about the linux-mtd-cvs mailing list