]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7915: fix endianness warnings in mt7915_debugfs_rx_fw_monitor
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 11 Feb 2022 17:12:50 +0000 (18:12 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Feb 2022 13:40:22 +0000 (14:40 +0100)
commit9c83cca6d1003c5211fd7ba3c11ebdd879f384f7
tree834ea9045f810135e4ffc451bed49bc307564dee
parent35bcbc846bc684cfe52bf70279229db9645cdbe5
mt76: mt7915: fix endianness warnings in mt7915_debugfs_rx_fw_monitor

Fix the following sparse warnings:
warning: incorrect type in initializer (different base types)
   expected restricted __le16 [usertype] msg_type
   got int
warning: incorrect type in assignment (different base types)
   expected restricted __le32 [usertype] timestamp
   got unsigned int

Fixes: 63d9310079a35 ("mt76: mt7915: add support for passing chip/firmware debug data to user space")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c