]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
Bluetooth: btusb: Move Intel command structs into its own header
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 6 Apr 2015 07:52:13 +0000 (00:52 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Apr 2015 16:48:21 +0000 (18:48 +0200)
Since the Intel Bluetooth support has its own header, it makes sense
to move all command structs into it.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/btintel.h
drivers/bluetooth/btusb.c

index 20be247d2ff62fee535b1a313ec5b761a18870cb..d1581150679a3a122bbdfbb8108e6b49e11ab879 100644 (file)
  *
  */
 
+struct intel_version {
+       u8 status;
+       u8 hw_platform;
+       u8 hw_variant;
+       u8 hw_revision;
+       u8 fw_variant;
+       u8 fw_revision;
+       u8 fw_build_num;
+       u8 fw_build_ww;
+       u8 fw_build_yy;
+       u8 fw_patch_num;
+} __packed;
+
+struct intel_boot_params {
+       __u8     status;
+       __u8     otp_format;
+       __u8     otp_content;
+       __u8     otp_patch;
+       __le16   dev_revid;
+       __u8     secure_boot;
+       __u8     key_from_hdr;
+       __u8     key_type;
+       __u8     otp_lock;
+       __u8     api_lock;
+       __u8     debug_lock;
+       bdaddr_t otp_bdaddr;
+       __u8     min_fw_build_nn;
+       __u8     min_fw_build_cw;
+       __u8     min_fw_build_yy;
+       __u8     limited_cce;
+       __u8     unlocked_state;
+} __packed;
+
 #if IS_ENABLED(CONFIG_BT_INTEL)
 
 int btintel_check_bdaddr(struct hci_dev *hdev);
index 5798aec44824144817a8956e10c4b0aed3b7ab9d..c06ceec13dbbb52fa9d7d6374ce0327926e2d7aa 100644 (file)
@@ -1345,39 +1345,6 @@ static int btusb_setup_csr(struct hci_dev *hdev)
        return ret;
 }
 
-struct intel_version {
-       u8 status;
-       u8 hw_platform;
-       u8 hw_variant;
-       u8 hw_revision;
-       u8 fw_variant;
-       u8 fw_revision;
-       u8 fw_build_num;
-       u8 fw_build_ww;
-       u8 fw_build_yy;
-       u8 fw_patch_num;
-} __packed;
-
-struct intel_boot_params {
-       __u8     status;
-       __u8     otp_format;
-       __u8     otp_content;
-       __u8     otp_patch;
-       __le16   dev_revid;
-       __u8     secure_boot;
-       __u8     key_from_hdr;
-       __u8     key_type;
-       __u8     otp_lock;
-       __u8     api_lock;
-       __u8     debug_lock;
-       bdaddr_t otp_bdaddr;
-       __u8     min_fw_build_nn;
-       __u8     min_fw_build_cw;
-       __u8     min_fw_build_yy;
-       __u8     limited_cce;
-       __u8     unlocked_state;
-} __packed;
-
 static const struct firmware *btusb_setup_intel_get_fw(struct hci_dev *hdev,
                                                       struct intel_version *ver)
 {