aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2008-12-26 03:13:29 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-26 03:13:29 -0500
commitbf512bc827c84f77553538834fffe71604079f23 (patch)
treef1e2d0afce300b314abb622bfc1cbb5cd3a6adbc /drivers
parent2ed5ba890e1e8dda89557e4ea233a26ab8bf3d58 (diff)
drivers/net/wireless/ath9k: fix sparse warnings: make symbols static
Fix this sparse warnings: drivers/net/wireless/ath9k/eeprom.c:195:6: warning: symbol 'ath9k_fill_eeprom' was not declared. Should it be static? drivers/net/wireless/ath9k/eeprom.c:463:5: warning: symbol 'ath9k_check_eeprom' was not declared. Should it be static? drivers/net/wireless/ath9k/eeprom.c:1219:6: warning: symbol 'ath9k_hw_set_def_power_per_rate_table' was not declared. Should it be static? drivers/net/wireless/ath9k/eeprom.c:1510:6: warning: symbol 'ath9k_hw_set_4k_power_per_rate_table' was not declared. Should it be static? drivers/net/wireless/ath9k/eeprom.c:2007:5: warning: symbol 'ath9k_set_txpower' was not declared. Should it be static? drivers/net/wireless/ath9k/eeprom.c:2106:6: warning: symbol 'ath9k_set_addac' was not declared. Should it be static? drivers/net/wireless/ath9k/eeprom.c:2543:6: warning: symbol 'ath9k_eeprom_set_board_values' was not declared. Should it be static? drivers/net/wireless/ath9k/eeprom.c:2606:5: warning: symbol 'ath9k_get_eeprom_antenna_cfg' was not declared. Should it be static? drivers/net/wireless/ath9k/eeprom.c:2622:4: warning: symbol 'ath9k_hw_get_4k_num_ant_config' was not declared. Should it be static? drivers/net/wireless/ath9k/eeprom.c:2628:4: warning: symbol 'ath9k_hw_get_def_num_ant_config' was not declared. Should it be static? drivers/net/wireless/ath9k/eeprom.c:2647:4: warning: symbol 'ath9k_get_num_ant_config' was not declared. Should it be static? drivers/net/wireless/ath9k/eeprom.c:2790:5: warning: symbol 'ath9k_get_eeprom' was not declared. Should it be static? Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath9k/eeprom.c62
1 files changed, 32 insertions, 30 deletions
diff --git a/drivers/net/wireless/ath9k/eeprom.c b/drivers/net/wireless/ath9k/eeprom.c
index 14f8d40c1427..acd6c5374d44 100644
--- a/drivers/net/wireless/ath9k/eeprom.c
+++ b/drivers/net/wireless/ath9k/eeprom.c
@@ -192,7 +192,7 @@ static bool ath9k_hw_fill_def_eeprom(struct ath_hal *ah)
192#undef SIZE_EEPROM_DEF 192#undef SIZE_EEPROM_DEF
193} 193}
194 194
195bool (*ath9k_fill_eeprom[]) (struct ath_hal *) = { 195static bool (*ath9k_fill_eeprom[]) (struct ath_hal *) = {
196 ath9k_hw_fill_def_eeprom, 196 ath9k_hw_fill_def_eeprom,
197 ath9k_hw_fill_4k_eeprom 197 ath9k_hw_fill_4k_eeprom
198}; 198};
@@ -460,7 +460,7 @@ static int ath9k_hw_check_4k_eeprom(struct ath_hal *ah)
460#undef EEPROM_4K_SIZE 460#undef EEPROM_4K_SIZE
461} 461}
462 462
463int (*ath9k_check_eeprom[]) (struct ath_hal *) = { 463static int (*ath9k_check_eeprom[]) (struct ath_hal *) = {
464 ath9k_hw_check_def_eeprom, 464 ath9k_hw_check_def_eeprom,
465 ath9k_hw_check_4k_eeprom 465 ath9k_hw_check_4k_eeprom
466}; 466};
@@ -1216,13 +1216,13 @@ static bool ath9k_hw_set_4k_power_cal_table(struct ath_hal *ah,
1216 return true; 1216 return true;
1217} 1217}
1218 1218
1219bool ath9k_hw_set_def_power_per_rate_table(struct ath_hal *ah, 1219static bool ath9k_hw_set_def_power_per_rate_table(struct ath_hal *ah,
1220 struct ath9k_channel *chan, 1220 struct ath9k_channel *chan,
1221 int16_t *ratesArray, 1221 int16_t *ratesArray,
1222 u16 cfgCtl, 1222 u16 cfgCtl,
1223 u16 AntennaReduction, 1223 u16 AntennaReduction,
1224 u16 twiceMaxRegulatoryPower, 1224 u16 twiceMaxRegulatoryPower,
1225 u16 powerLimit) 1225 u16 powerLimit)
1226{ 1226{
1227#define REDUCE_SCALED_POWER_BY_TWO_CHAIN 6 /* 10*log10(2)*2 */ 1227#define REDUCE_SCALED_POWER_BY_TWO_CHAIN 6 /* 10*log10(2)*2 */
1228#define REDUCE_SCALED_POWER_BY_THREE_CHAIN 10 /* 10*log10(3)*2 */ 1228#define REDUCE_SCALED_POWER_BY_THREE_CHAIN 10 /* 10*log10(3)*2 */
@@ -1507,13 +1507,13 @@ bool ath9k_hw_set_def_power_per_rate_table(struct ath_hal *ah,
1507 return true; 1507 return true;
1508} 1508}
1509 1509
1510bool ath9k_hw_set_4k_power_per_rate_table(struct ath_hal *ah, 1510static bool ath9k_hw_set_4k_power_per_rate_table(struct ath_hal *ah,
1511 struct ath9k_channel *chan, 1511 struct ath9k_channel *chan,
1512 int16_t *ratesArray, 1512 int16_t *ratesArray,
1513 u16 cfgCtl, 1513 u16 cfgCtl,
1514 u16 AntennaReduction, 1514 u16 AntennaReduction,
1515 u16 twiceMaxRegulatoryPower, 1515 u16 twiceMaxRegulatoryPower,
1516 u16 powerLimit) 1516 u16 powerLimit)
1517{ 1517{
1518 struct ath_hal_5416 *ahp = AH5416(ah); 1518 struct ath_hal_5416 *ahp = AH5416(ah);
1519 struct ar5416_eeprom_4k *pEepData = &ahp->ah_eeprom.map4k; 1519 struct ar5416_eeprom_4k *pEepData = &ahp->ah_eeprom.map4k;
@@ -2004,9 +2004,9 @@ static int ath9k_hw_4k_set_txpower(struct ath_hal *ah,
2004 return 0; 2004 return 0;
2005} 2005}
2006 2006
2007int (*ath9k_set_txpower[]) (struct ath_hal *, 2007static int (*ath9k_set_txpower[]) (struct ath_hal *,
2008 struct ath9k_channel *, 2008 struct ath9k_channel *,
2009 u16, u8, u8, u8) = { 2009 u16, u8, u8, u8) = {
2010 ath9k_hw_def_set_txpower, 2010 ath9k_hw_def_set_txpower,
2011 ath9k_hw_4k_set_txpower 2011 ath9k_hw_4k_set_txpower
2012}; 2012};
@@ -2103,7 +2103,7 @@ static void ath9k_hw_set_4k_addac(struct ath_hal *ah,
2103 } 2103 }
2104} 2104}
2105 2105
2106void (*ath9k_set_addac[]) (struct ath_hal *, struct ath9k_channel *) = { 2106static void (*ath9k_set_addac[]) (struct ath_hal *, struct ath9k_channel *) = {
2107 ath9k_hw_set_def_addac, 2107 ath9k_hw_set_def_addac,
2108 ath9k_hw_set_4k_addac 2108 ath9k_hw_set_4k_addac
2109}; 2109};
@@ -2540,8 +2540,8 @@ static bool ath9k_hw_eeprom_set_4k_board_values(struct ath_hal *ah,
2540 return true; 2540 return true;
2541} 2541}
2542 2542
2543bool (*ath9k_eeprom_set_board_values[])(struct ath_hal *, 2543static bool (*ath9k_eeprom_set_board_values[])(struct ath_hal *,
2544 struct ath9k_channel *) = { 2544 struct ath9k_channel *) = {
2545 ath9k_hw_eeprom_set_def_board_values, 2545 ath9k_hw_eeprom_set_def_board_values,
2546 ath9k_hw_eeprom_set_4k_board_values 2546 ath9k_hw_eeprom_set_4k_board_values
2547}; 2547};
@@ -2603,8 +2603,9 @@ static int ath9k_hw_get_4k_eeprom_antenna_cfg(struct ath_hal *ah,
2603 return -EINVAL; 2603 return -EINVAL;
2604} 2604}
2605 2605
2606int (*ath9k_get_eeprom_antenna_cfg[])(struct ath_hal *, struct ath9k_channel *, 2606static int (*ath9k_get_eeprom_antenna_cfg[])(struct ath_hal *,
2607 u8, u16 *) = { 2607 struct ath9k_channel *,
2608 u8, u16 *) = {
2608 ath9k_hw_get_def_eeprom_antenna_cfg, 2609 ath9k_hw_get_def_eeprom_antenna_cfg,
2609 ath9k_hw_get_4k_eeprom_antenna_cfg 2610 ath9k_hw_get_4k_eeprom_antenna_cfg
2610}; 2611};
@@ -2619,14 +2620,14 @@ int ath9k_hw_get_eeprom_antenna_cfg(struct ath_hal *ah,
2619 index, config); 2620 index, config);
2620} 2621}
2621 2622
2622u8 ath9k_hw_get_4k_num_ant_config(struct ath_hal *ah, 2623static u8 ath9k_hw_get_4k_num_ant_config(struct ath_hal *ah,
2623 enum ieee80211_band freq_band) 2624 enum ieee80211_band freq_band)
2624{ 2625{
2625 return 1; 2626 return 1;
2626} 2627}
2627 2628
2628u8 ath9k_hw_get_def_num_ant_config(struct ath_hal *ah, 2629static u8 ath9k_hw_get_def_num_ant_config(struct ath_hal *ah,
2629 enum ieee80211_band freq_band) 2630 enum ieee80211_band freq_band)
2630{ 2631{
2631 struct ath_hal_5416 *ahp = AH5416(ah); 2632 struct ath_hal_5416 *ahp = AH5416(ah);
2632 struct ar5416_eeprom_def *eep = &ahp->ah_eeprom.def; 2633 struct ar5416_eeprom_def *eep = &ahp->ah_eeprom.def;
@@ -2644,7 +2645,8 @@ u8 ath9k_hw_get_def_num_ant_config(struct ath_hal *ah,
2644 return num_ant_config; 2645 return num_ant_config;
2645} 2646}
2646 2647
2647u8 (*ath9k_get_num_ant_config[])(struct ath_hal *, enum ieee80211_band) = { 2648static u8 (*ath9k_get_num_ant_config[])(struct ath_hal *,
2649 enum ieee80211_band) = {
2648 ath9k_hw_get_def_num_ant_config, 2650 ath9k_hw_get_def_num_ant_config,
2649 ath9k_hw_get_4k_num_ant_config 2651 ath9k_hw_get_4k_num_ant_config
2650}; 2652};
@@ -2787,7 +2789,7 @@ static u32 ath9k_hw_get_eeprom_def(struct ath_hal *ah,
2787 } 2789 }
2788} 2790}
2789 2791
2790u32 (*ath9k_get_eeprom[])(struct ath_hal *, enum eeprom_param) = { 2792static u32 (*ath9k_get_eeprom[])(struct ath_hal *, enum eeprom_param) = {
2791 ath9k_hw_get_eeprom_def, 2793 ath9k_hw_get_eeprom_def,
2792 ath9k_hw_get_eeprom_4k 2794 ath9k_hw_get_eeprom_4k
2793}; 2795};