Bluetooth: Compress the size of struct hci_ctrl
[linux-2.6-microblaze.git] / include / net / bluetooth / bluetooth.h
index a85e6d3..8d38f41 100644 (file)
@@ -296,12 +296,17 @@ typedef void (*hci_req_complete_t)(struct hci_dev *hdev, u8 status, u16 opcode);
 typedef void (*hci_req_complete_skb_t)(struct hci_dev *hdev, u8 status,
                                       u16 opcode, struct sk_buff *skb);
 
+#define HCI_REQ_START  BIT(0)
+#define HCI_REQ_SKB    BIT(1)
+
 struct hci_ctrl {
        __u16 opcode;
-       bool req_start;
+       u8 req_flags;
        u8 req_event;
-       hci_req_complete_t req_complete;
-       hci_req_complete_skb_t req_complete_skb;
+       union {
+               hci_req_complete_t req_complete;
+               hci_req_complete_skb_t req_complete_skb;
+       };
 };
 
 struct bt_skb_cb {