Bluetooth: qca: Fix sparse warnings
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 5 Jan 2023 23:58:04 +0000 (15:58 -0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 9 Feb 2023 22:17:23 +0000 (14:17 -0800)
This fixes the following warnings:

drivers/bluetooth/hci_qca.c:1014:26: warning: cast to restricted __le16
drivers/bluetooth/hci_qca.c:1028:37: warning: cast to restricted __le32

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_qca.c

index bbe9cf1cae27f6088cea5cdd5cd71983fdded295..a5c19f32926b597d8429f38874144318fbe67a94 100644 (file)
@@ -128,13 +128,13 @@ struct qca_memdump_event_hdr {
        __u8    evt;
        __u8    plen;
        __u16   opcode;
-       __u16   seq_no;
+       __le16   seq_no;
        __u8    reserved;
 } __packed;
 
 
 struct qca_dump_size {
-       u32 dump_size;
+       __le32 dump_size;
 } __packed;
 
 struct qca_data {