mt76: mt7603: fix sparse warnings: warning: incorrect type in assignment (different base types)

Fix the following sparse warning in mt7603_mcu_set_eeprom:
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c:376:30: sparse: warning:
incorrect type in assignment (different base types)
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c:376:30: sparse:
expected unsigned short [usertype] addr
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c:376:30: sparse: got
restricted __le16 [usertype]

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Lorenzo Bianconi 2019-06-27 12:13:16 +02:00 committed by Felix Fietkau
parent d923cf6bc3
commit 676fabd1d2
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ int mt7603_mcu_set_eeprom(struct mt7603_dev *dev)
}; };
struct req_data { struct req_data {
u16 addr; __le16 addr;
u8 val; u8 val;
u8 pad; u8 pad;
} __packed; } __packed;