aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-10-19 02:33:44 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-30 16:50:38 -0400
commit896ff260351f736f0d9d32f4fd36257f3e75bd97 (patch)
tree3b3efeb726fafee72d3a8848a0b7cdb63affc4bb /drivers/net/wireless/ath
parentae478cf69e9e49a88e0fe8beaffbcba2f97b5209 (diff)
ath9k_hw: remove unused modesIndex param from ath9k_hw_write_regs()
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c2
-rw-r--r--drivers/net/wireless/ath/ath9k/phy.c4
-rw-r--r--drivers/net/wireless/ath/ath9k/phy.h3
3 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index f73c07dfe65f..7300db9f8117 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1525,7 +1525,7 @@ static int ath9k_hw_process_ini(struct ath_hw *ah,
1525 DO_DELAY(regWrites); 1525 DO_DELAY(regWrites);
1526 } 1526 }
1527 1527
1528 ath9k_hw_write_regs(ah, modesIndex, freqIndex, regWrites); 1528 ath9k_hw_write_regs(ah, freqIndex, regWrites);
1529 1529
1530 if (AR_SREV_9271_10(ah)) 1530 if (AR_SREV_9271_10(ah))
1531 REG_WRITE_ARRAY(&ah->iniModes_9271_1_0_only, 1531 REG_WRITE_ARRAY(&ah->iniModes_9271_1_0_only,
diff --git a/drivers/net/wireless/ath/ath9k/phy.c b/drivers/net/wireless/ath/ath9k/phy.c
index 8e4c3bd84bc0..a15532eaae19 100644
--- a/drivers/net/wireless/ath/ath9k/phy.c
+++ b/drivers/net/wireless/ath/ath9k/phy.c
@@ -45,15 +45,13 @@
45 * ath9k_hw_write_regs - ?? 45 * ath9k_hw_write_regs - ??
46 * 46 *
47 * @ah: atheros hardware structure 47 * @ah: atheros hardware structure
48 * @modesIndex:
49 * @freqIndex: 48 * @freqIndex:
50 * @regWrites: 49 * @regWrites:
51 * 50 *
52 * Used for both the chipsets with an external AR2133/AR5133 radios and 51 * Used for both the chipsets with an external AR2133/AR5133 radios and
53 * single-chip devices. 52 * single-chip devices.
54 */ 53 */
55void ath9k_hw_write_regs(struct ath_hw *ah, u32 modesIndex, 54void ath9k_hw_write_regs(struct ath_hw *ah, u32 freqIndex, int regWrites)
56 u32 freqIndex, int regWrites)
57{ 55{
58 REG_WRITE_ARRAY(&ah->iniBB_RfGain, freqIndex, regWrites); 56 REG_WRITE_ARRAY(&ah->iniBB_RfGain, freqIndex, regWrites);
59} 57}
diff --git a/drivers/net/wireless/ath/ath9k/phy.h b/drivers/net/wireless/ath/ath9k/phy.h
index ba297bef7dc5..dc145a135dc7 100644
--- a/drivers/net/wireless/ath/ath9k/phy.h
+++ b/drivers/net/wireless/ath/ath9k/phy.h
@@ -18,8 +18,7 @@
18#define PHY_H 18#define PHY_H
19 19
20/* Common between single chip and non single-chip solutions */ 20/* Common between single chip and non single-chip solutions */
21void ath9k_hw_write_regs(struct ath_hw *ah, u32 modesIndex, 21void ath9k_hw_write_regs(struct ath_hw *ah, u32 freqIndex, int regWrites);
22 u32 freqIndex, int regWrites);
23 22
24/* Single chip radio settings */ 23/* Single chip radio settings */
25int ath9k_hw_ar9280_set_channel(struct ath_hw *ah, struct ath9k_channel *chan); 24int ath9k_hw_ar9280_set_channel(struct ath_hw *ah, struct ath9k_channel *chan);