Commit 19e29c69 authored by Ryder Lee's avatar Ryder Lee Committed by Felix Fietkau

mt76: mt7915: fix sparse warnings: incorrect type initializer

drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:2317:31: sparse: sparse:
incorrect type in initializer (different base types)

Fixes: 5517f78b ("mt76: mt7915: enable firmware module debug support")
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarRyder Lee <ryder.lee@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent f9a5c056
...@@ -2671,7 +2671,7 @@ int mt7915_mcu_fw_dbg_ctrl(struct mt7915_dev *dev, u32 module, u8 level) ...@@ -2671,7 +2671,7 @@ int mt7915_mcu_fw_dbg_ctrl(struct mt7915_dev *dev, u32 module, u8 level)
u16 len; u16 len;
u8 level; u8 level;
u8 rsv[3]; u8 rsv[3];
u32 module_idx; __le32 module_idx;
} data = { } data = {
.module_idx = cpu_to_le32(module), .module_idx = cpu_to_le32(module),
.level = level, .level = level,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment