]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: fix header guard macro define names
authorColin Ian King <colin.king@canonical.com>
Sun, 30 Sep 2018 22:57:15 +0000 (23:57 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 5 Oct 2018 18:05:44 +0000 (20:05 +0200)
commit001406b84844727d7f8b4884acece11554187618
tree0829b11502d4f2ff6230f2fe59e7795805a0b912
parent2e9dd1c2121e5e839f8348ac9a9fd1fa2418336a
mt76: fix header guard macro define names

The header guards that are #defined are different from those being
checked.  Fix this by #defining them to the correct name.

Fixes clang warnings:
drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h:17:9:
warning: '__MT76x02_MCU_H' is used as a header guard here, followed
by #define of a different macro [-Wheader-guard]

drivers/net/wireless/mediatek/mt76/mt76x02_usb.h:17:9:
warning: '__MT76x02_USB_H' is used as a header guard here, followed
by #define of a different macro [-Wheader-guard]

Fixes: e16d9d02f92d ("mt76: usb: move mt76x02 mcu code in mt76x02-usb module")
Fixes: 8705781e35b2 ("mt76: move shared mcu_calibrate routine in mt76x02-lib module")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h
drivers/net/wireless/mediatek/mt76/mt76x02_usb.h