Skip to content

Commit 75bc421

Browse files
Thalleymbolivar-nordic
authored andcommitted
Bluetooth: ISO: Change some functions to static
There were a few local functions that were not defined as static even though they could. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 4e557d7 commit 75bc421

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

subsys/bluetooth/host/conn_internal.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,6 @@ struct bt_iso_create_param {
275275

276276
int bt_conn_iso_init(void);
277277

278-
/* Add a new ISO connection */
279-
struct bt_conn *bt_conn_add_iso(struct bt_conn *acl);
280-
281278
/* Cleanup ISO references */
282279
void bt_iso_cleanup_acl(struct bt_conn *iso_conn);
283280

subsys/bluetooth/host/iso.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ static void bt_iso_remove_data_path(struct bt_conn *iso);
5555
#endif /* CONFIG_BT_ISO_CENTRAL */
5656
#if defined(CONFIG_BT_ISO_PERIPHERAL)
5757
static struct bt_iso_server *iso_server;
58+
59+
static struct bt_conn *bt_conn_add_iso(struct bt_conn *acl);
5860
#endif /* CONFIG_BT_ISO_PERIPHERAL */
5961

6062
#if defined(CONFIG_BT_ISO_BROADCAST)
@@ -923,7 +925,7 @@ static int iso_accept(struct bt_conn *acl, struct bt_conn *iso)
923925
return 0;
924926
}
925927

926-
int hci_le_reject_cis(uint16_t handle, uint8_t reason)
928+
static int hci_le_reject_cis(uint16_t handle, uint8_t reason)
927929
{
928930
struct bt_hci_cp_le_reject_cis *cp;
929931
struct net_buf *buf;
@@ -946,7 +948,7 @@ int hci_le_reject_cis(uint16_t handle, uint8_t reason)
946948
return 0;
947949
}
948950

949-
int hci_le_accept_cis(uint16_t handle)
951+
static int hci_le_accept_cis(uint16_t handle)
950952
{
951953
struct bt_hci_cp_le_accept_cis *cp;
952954
struct net_buf *buf;
@@ -1035,7 +1037,7 @@ void hci_le_cis_req(struct net_buf *buf)
10351037
}
10361038
}
10371039

1038-
struct bt_conn *bt_conn_add_iso(struct bt_conn *acl)
1040+
static struct bt_conn *bt_conn_add_iso(struct bt_conn *acl)
10391041
{
10401042
struct bt_conn *iso = iso_new();
10411043

0 commit comments

Comments
 (0)