aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorFlorian Grandel <fgrandel@gmail.com>2015-06-17 21:16:37 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-06-18 12:11:51 -0400
commitefae002c2c8acd1fd2d0c6e47122944094c8ae1f (patch)
tree652f6aa7605a6dd9ee11ccff2af71aaebfb23c9a /net/bluetooth
parent91aa9bb2e3d2130b0ef004d2a05cfda6f0222ce2 (diff)
Bluetooth: mgmt: rename update_*_data_for_instance()
The ...for_instance function name is quite long and does not follow the ..._inst_... convention followed elsewhere in the code. This patch renames the ...for_instance functions to their shorter ..._inst_... version. Signed-off-by: Florian Grandel <fgrandel@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/mgmt.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index c3304164cab9..7fabcb60da2d 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -883,8 +883,7 @@ static u8 create_instance_scan_rsp_data(struct hci_dev *hdev, u8 *ptr)
883 return hdev->adv_instance.scan_rsp_len; 883 return hdev->adv_instance.scan_rsp_len;
884} 884}
885 885
886static void update_scan_rsp_data_for_instance(struct hci_request *req, 886static void update_inst_scan_rsp_data(struct hci_request *req, u8 instance)
887 u8 instance)
888{ 887{
889 struct hci_dev *hdev = req->hdev; 888 struct hci_dev *hdev = req->hdev;
890 struct hci_cp_le_set_scan_rsp_data cp; 889 struct hci_cp_le_set_scan_rsp_data cp;
@@ -914,8 +913,7 @@ static void update_scan_rsp_data_for_instance(struct hci_request *req,
914 913
915static void update_scan_rsp_data(struct hci_request *req) 914static void update_scan_rsp_data(struct hci_request *req)
916{ 915{
917 update_scan_rsp_data_for_instance(req, 916 update_inst_scan_rsp_data(req, get_current_adv_instance(req->hdev));
918 get_current_adv_instance(req->hdev));
919} 917}
920 918
921static u8 get_adv_discov_flags(struct hci_dev *hdev) 919static u8 get_adv_discov_flags(struct hci_dev *hdev)
@@ -1052,7 +1050,7 @@ static u8 create_instance_adv_data(struct hci_dev *hdev, u8 instance, u8 *ptr)
1052 return ad_len; 1050 return ad_len;
1053} 1051}
1054 1052
1055static void update_adv_data_for_instance(struct hci_request *req, u8 instance) 1053static void update_inst_adv_data(struct hci_request *req, u8 instance)
1056{ 1054{
1057 struct hci_dev *hdev = req->hdev; 1055 struct hci_dev *hdev = req->hdev;
1058 struct hci_cp_le_set_adv_data cp; 1056 struct hci_cp_le_set_adv_data cp;
@@ -1080,7 +1078,7 @@ static void update_adv_data_for_instance(struct hci_request *req, u8 instance)
1080 1078
1081static void update_adv_data(struct hci_request *req) 1079static void update_adv_data(struct hci_request *req)
1082{ 1080{
1083 update_adv_data_for_instance(req, get_current_adv_instance(req->hdev)); 1081 update_inst_adv_data(req, get_current_adv_instance(req->hdev));
1084} 1082}
1085 1083
1086int mgmt_update_adv_data(struct hci_dev *hdev) 1084int mgmt_update_adv_data(struct hci_dev *hdev)
@@ -4776,8 +4774,8 @@ static int set_advertising(struct sock *sk, struct hci_dev *hdev, void *data,
4776 4774
4777 if (val) { 4775 if (val) {
4778 /* Switch to instance "0" for the Set Advertising setting. */ 4776 /* Switch to instance "0" for the Set Advertising setting. */
4779 update_adv_data_for_instance(&req, 0); 4777 update_inst_adv_data(&req, 0x00);
4780 update_scan_rsp_data_for_instance(&req, 0); 4778 update_inst_scan_rsp_data(&req, 0x00);
4781 enable_advertising(&req); 4779 enable_advertising(&req);
4782 } else { 4780 } else {
4783 disable_advertising(&req); 4781 disable_advertising(&req);