Skip to contentSkip to conversation

Bluetooth: Move HCI socket definitions into its own header file

PATCH Applied Marcel Holtmann 2 participants 2 messages Jul 11, 2014

Subsystems (3)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 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
index e82289047272..afec6450450f 100644
@@ -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
index 7e9e95633a85..5c52a17d6326 100644
@@ -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
#1 lore raw

Hi 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.c to only include this new file and not all the protocol structures that are not needed.

Quoted 8 lines
---
 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