aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-03-13 13:20:35 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2015-03-13 13:28:36 -0400
commitb7cb93e52839ee44959adabc17c2a17422e6bd4b (patch)
tree8e00a2b40ace2987f34295f3084edd7fc126181c /include/net
parenteacb44dff98559d4682072c0061e1ecb63687e9c (diff)
Bluetooth: Merge hdev->dbg_flags fields into hdev->dev_flags
With the extension of hdev->dev_flags utilizing a bitmap now, the space is no longer restricted. Merge the hdev->dbg_flags into hdev->dev_flags to save space on 64-bit architectures. On 32-bit architectures no size reduction happens. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/hci.h14
-rw-r--r--include/net/bluetooth/hci_core.h1
2 files changed, 5 insertions, 10 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 7a0272a6f0ba..d942fedbaedd 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -179,15 +179,6 @@ enum {
179 HCI_RESET, 179 HCI_RESET,
180}; 180};
181 181
182/* BR/EDR and/or LE controller flags: the flags defined here should represent
183 * states configured via debugfs for debugging and testing purposes only.
184 */
185enum {
186 HCI_DUT_MODE,
187 HCI_FORCE_BREDR_SMP,
188 HCI_FORCE_STATIC_ADDR,
189};
190
191/* 182/*
192 * BR/EDR and/or LE controller flags: the flags defined here should represent 183 * BR/EDR and/or LE controller flags: the flags defined here should represent
193 * states from the controller. 184 * states from the controller.
@@ -226,6 +217,11 @@ enum {
226 HCI_FAST_CONNECTABLE, 217 HCI_FAST_CONNECTABLE,
227 HCI_BREDR_ENABLED, 218 HCI_BREDR_ENABLED,
228 HCI_LE_SCAN_INTERRUPTED, 219 HCI_LE_SCAN_INTERRUPTED,
220
221 HCI_DUT_MODE,
222 HCI_FORCE_BREDR_SMP,
223 HCI_FORCE_STATIC_ADDR,
224
229 __HCI_NUM_FLAGS, 225 __HCI_NUM_FLAGS,
230}; 226};
231 227
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 889a489d913f..6afbf5b014a1 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -353,7 +353,6 @@ struct hci_dev {
353 353
354 struct rfkill *rfkill; 354 struct rfkill *rfkill;
355 355
356 unsigned long dbg_flags;
357 DECLARE_BITMAP(dev_flags, __HCI_NUM_FLAGS); 356 DECLARE_BITMAP(dev_flags, __HCI_NUM_FLAGS);
358 357
359 struct delayed_work le_scan_disable; 358 struct delayed_work le_scan_disable;