From: Andre Guedes Date: Tue, 24 Jul 2012 18:03:50 +0000 (-0300) Subject: Bluetooth: Use lmp_rswitch_capable where applicable X-Git-Tag: next-20120725~59^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=46c5bfa151881a92a5d91d63890891b55b24a1ed;p=karo-tx-linux.git 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 Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 5722a388ada1..5c71c85c87a7 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;