Skip to content

Commit 7ef9fbf

Browse files
holtmannjhedberg
authored andcommitted
Bluetooth: Move amp.h header file into net/bluetooth/
The amp.h header file is only used internally by the bluetooth.ko module and is not a public API. So make it local to the core Bluetooth module. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
1 parent 324d36e commit 7ef9fbf

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎net/bluetooth/a2mp.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
#include <net/bluetooth/hci_core.h>
1717
#include <net/bluetooth/l2cap.h>
1818
#include <net/bluetooth/a2mp.h>
19-
#include <net/bluetooth/amp.h>
19+
20+
#include "amp.h"
2021

2122
/* Global AMP Manager list */
2223
LIST_HEAD(amp_mgr_list);

‎net/bluetooth/amp.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
#include <net/bluetooth/hci.h>
1616
#include <net/bluetooth/hci_core.h>
1717
#include <net/bluetooth/a2mp.h>
18-
#include <net/bluetooth/amp.h>
1918
#include <crypto/hash.h>
2019

20+
#include "amp.h"
21+
2122
/* Remote AMP Controllers interface */
2223
void amp_ctrl_get(struct amp_ctrl *ctrl)
2324
{

‎net/bluetooth/hci_event.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
#include <net/bluetooth/hci_core.h>
3131
#include <net/bluetooth/mgmt.h>
3232
#include <net/bluetooth/a2mp.h>
33-
#include <net/bluetooth/amp.h>
33+
34+
#include "amp.h"
3435

3536
/* Handle HCI Event packets */
3637

‎net/bluetooth/l2cap_core.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
#include <net/bluetooth/l2cap.h>
3939
#include <net/bluetooth/smp.h>
4040
#include <net/bluetooth/a2mp.h>
41-
#include <net/bluetooth/amp.h>
41+
42+
#include "amp.h"
4243

4344
bool disable_ertm;
4445

0 commit comments

Comments
 (0)