]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ath9k: make ath_mci_duty_cycle static
authorLuis R. Rodriguez <mcgrof@qca.qualcomm.com>
Wed, 21 Dec 2011 17:27:01 +0000 (09:27 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Jan 2012 19:30:42 +0000 (14:30 -0500)
This fixes this sparse warning:

  CHECK   drivers/net/wireless/ath/ath9k/mci.c
drivers/net/wireless/ath/ath9k/mci.c:23:4: warning: symbol 'ath_mci_duty_cycle' was not declared. Should it be static?

Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/mci.c

index fee8c6f0b2512049a7d45de36b1001678684b460..05c23ea4c63362a36072b699719ecd4ce2810173 100644 (file)
@@ -20,7 +20,7 @@
 #include "ath9k.h"
 #include "mci.h"
 
-u8 ath_mci_duty_cycle[] = { 0, 50, 60, 70, 80, 85, 90, 95, 98 };
+static const u8 ath_mci_duty_cycle[] = { 0, 50, 60, 70, 80, 85, 90, 95, 98 };
 
 static struct ath_mci_profile_info*
 ath_mci_find_profile(struct ath_mci_profile *mci,