diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-02 10:37:25 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-07-03 11:42:56 -0400 |
commit | 373110c5d30b0944b47cddbe586069b7457f8845 (patch) | |
tree | 216b33fd06c2b4b72420476b5cffaebb4d338511 | |
parent | af96324312ed5b3d095d54b6d56b93f693f54c9f (diff) |
Bluetooth: Rename hci_conn_params_clear to hci_conn_params_clear_all
We'll soon have specific clear functions for clearing enabled or
disabled entries, so rename the function that removes everything to
clear_all().
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 | ||||
-rw-r--r-- | net/bluetooth/hci_core.c | 4 | ||||
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index ee480a86e558..091934bcfd84 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -861,7 +861,7 @@ struct hci_conn_params *hci_conn_params_add(struct hci_dev *hdev, | |||
861 | int hci_conn_params_set(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type, | 861 | int hci_conn_params_set(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type, |
862 | u8 auto_connect); | 862 | u8 auto_connect); |
863 | void hci_conn_params_del(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type); | 863 | void hci_conn_params_del(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type); |
864 | void hci_conn_params_clear(struct hci_dev *hdev); | 864 | void hci_conn_params_clear_all(struct hci_dev *hdev); |
865 | 865 | ||
866 | struct bdaddr_list *hci_pend_le_conn_lookup(struct hci_dev *hdev, | 866 | struct bdaddr_list *hci_pend_le_conn_lookup(struct hci_dev *hdev, |
867 | bdaddr_t *addr, u8 addr_type); | 867 | bdaddr_t *addr, u8 addr_type); |
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 21a4c8dfb874..e6e169007fd2 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -3580,7 +3580,7 @@ void hci_conn_params_del(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type) | |||
3580 | } | 3580 | } |
3581 | 3581 | ||
3582 | /* This function requires the caller holds hdev->lock */ | 3582 | /* This function requires the caller holds hdev->lock */ |
3583 | void hci_conn_params_clear(struct hci_dev *hdev) | 3583 | void hci_conn_params_clear_all(struct hci_dev *hdev) |
3584 | { | 3584 | { |
3585 | struct hci_conn_params *params, *tmp; | 3585 | struct hci_conn_params *params, *tmp; |
3586 | 3586 | ||
@@ -4038,7 +4038,7 @@ void hci_unregister_dev(struct hci_dev *hdev) | |||
4038 | hci_smp_irks_clear(hdev); | 4038 | hci_smp_irks_clear(hdev); |
4039 | hci_remote_oob_data_clear(hdev); | 4039 | hci_remote_oob_data_clear(hdev); |
4040 | hci_white_list_clear(hdev); | 4040 | hci_white_list_clear(hdev); |
4041 | hci_conn_params_clear(hdev); | 4041 | hci_conn_params_clear_all(hdev); |
4042 | hci_dev_unlock(hdev); | 4042 | hci_dev_unlock(hdev); |
4043 | 4043 | ||
4044 | hci_dev_put(hdev); | 4044 | hci_dev_put(hdev); |
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 93cfefa260d5..29850e76ea3c 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -5104,7 +5104,7 @@ static int remove_device(struct sock *sk, struct hci_dev *hdev, | |||
5104 | goto unlock; | 5104 | goto unlock; |
5105 | } | 5105 | } |
5106 | 5106 | ||
5107 | hci_conn_params_clear(hdev); | 5107 | hci_conn_params_clear_all(hdev); |
5108 | } | 5108 | } |
5109 | 5109 | ||
5110 | err = cmd_complete(sk, hdev->id, MGMT_OP_REMOVE_DEVICE, | 5110 | err = cmd_complete(sk, hdev->id, MGMT_OP_REMOVE_DEVICE, |