Skip to content

Commit 4611dfa

Browse files
author
Gustavo Padovan
committed
Bluetooth: Replace *_init() for *_setup()
le_init() and bredr_init() are now called le_setup() and bredr_setup() to avoid duplicates names over the tree even if they are all static. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
1 parent 8fa1909 commit 4611dfa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎net/bluetooth/hci_event.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
559559
}
560560
}
561561

562-
static void bredr_init(struct hci_dev *hdev)
562+
static void bredr_setup(struct hci_dev *hdev)
563563
{
564564
struct hci_cp_delete_stored_link_key cp;
565565
__le16 param;
@@ -590,7 +590,7 @@ static void bredr_init(struct hci_dev *hdev)
590590
hci_send_cmd(hdev, HCI_OP_DELETE_STORED_LINK_KEY, sizeof(cp), &cp);
591591
}
592592

593-
static void le_init(struct hci_dev *hdev)
593+
static void le_setup(struct hci_dev *hdev)
594594
{
595595
/* Read LE Buffer Size */
596596
hci_send_cmd(hdev, HCI_OP_LE_READ_BUFFER_SIZE, 0, NULL);
@@ -608,10 +608,10 @@ static void hci_setup(struct hci_dev *hdev)
608608
hci_send_cmd(hdev, HCI_OP_READ_BD_ADDR, 0, NULL);
609609

610610
if (lmp_bredr_capable(hdev))
611-
bredr_init(hdev);
611+
bredr_setup(hdev);
612612

613613
if (lmp_le_capable(hdev))
614-
le_init(hdev);
614+
le_setup(hdev);
615615

616616
hci_setup_event_mask(hdev);
617617

0 commit comments

Comments
 (0)