Bluetooth: Move HCI socket definitions into its own header file
Subsystems (3)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Move HCI socket definitions into its own header file
All the HCI sockets and ioctl based definitions have been in a global header file that also includes all the HCI protocol structures. To make this a bit cleaner, move them into its own file.
This also adjusts fs/compat_ioctl.c to only include this new file and not all the protocol structures that are not needed.
--- fs/compat_ioctl.c | 2 +- include/net/bluetooth/hci.h | 149 --------------------------------- include/net/bluetooth/hci_core.h | 1 + include/net/bluetooth/hci_sock.h | 175 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 177 insertions(+), 150 deletions(-) create mode 100644 include/net/bluetooth/hci_sock.h
fs/compat_ioctl.c +1 -1
@@ -59,7 +59,7 @@#include <linux/gfp.h> #include <net/bluetooth/bluetooth.h> -#include <net/bluetooth/hci.h> +#include <net/bluetooth/hci_sock.h> #include <net/bluetooth/rfcomm.h> #include <linux/capi.h>
include/net/bluetooth/hci.h +0 -149
159 lines not on this page · raw message
include/net/bluetooth/hci_core.h +1 -0
@@ -26,6 +26,7 @@#define __HCI_CORE_H#include <net/bluetooth/hci.h> +#include <net/bluetooth/hci_sock.h> /* HCI priority */ #define HCI_PRIO_MAX 7
include/net/bluetooth/hci_sock.h new file +175 -0
175 lines not on this page · raw message
Signature · 1 line
1.9.3
Johan Hedberg
AppliedHi Marcel,
Quoted 7 lines · Marcel Holtmann
All the HCI sockets and ioctl based definitions have been in a global header file that also includes all the HCI protocol structures. To make this a bit cleaner, move them into its own file.
This also adjusts
fs/compat_ioctl.cto only include this new file and not all the protocol structures that are not needed.
Quoted 8 lines
Signed-off-by Marcel Holtmann <[email protected]>--- fs/compat_ioctl.c | 2 +- include/net/bluetooth/hci.h | 149 --------------------------------- include/net/bluetooth/hci_core.h | 1 + include/net/bluetooth/hci_sock.h | 175 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 177 insertions(+), 150 deletions(-) create mode 100644 include/net/bluetooth/hci_sock.h
Applied to bluetooth-next. Thanks.
Johan