aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2011-12-23 02:13:46 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-01-04 14:30:44 -0500
commit280ade5ea9555208716131765cc194069eaf97d9 (patch)
treeba2dd8b51ca6fb0bb2d69beebbeb22c378ce9961 /drivers/net
parent616107ed818876076bc482d3a33f89c31297b86e (diff)
iwlegacy: 3945: get rid of hw_{set,get}_rate
Remove these helpers, some are not unused at all, one can be unrolled in place of use. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlegacy/3945.c3
-rw-r--r--drivers/net/wireless/iwlegacy/3945.h18
2 files changed, 1 insertions, 20 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945.c b/drivers/net/wireless/iwlegacy/3945.c
index 0b99deb48426..44a121167806 100644
--- a/drivers/net/wireless/iwlegacy/3945.c
+++ b/drivers/net/wireless/iwlegacy/3945.c
@@ -2331,8 +2331,7 @@ il3945_init_hw_rate_table(struct il_priv *il)
2331 for (i = 0; i < ARRAY_SIZE(il3945_rates); i++) { 2331 for (i = 0; i < ARRAY_SIZE(il3945_rates); i++) {
2332 idx = il3945_rates[i].table_rs_idx; 2332 idx = il3945_rates[i].table_rs_idx;
2333 2333
2334 table[idx].rate_n_flags = 2334 table[idx].rate_n_flags = cpu_to_le16(il3945_rates[i].plcp);
2335 il3945_hw_set_rate_n_flags(il3945_rates[i].plcp, 0);
2336 table[idx].try_cnt = il->retry_rate; 2335 table[idx].try_cnt = il->retry_rate;
2337 prev_idx = il3945_get_prev_ieee_rate(i); 2336 prev_idx = il3945_get_prev_ieee_rate(i);
2338 table[idx].next_rate_idx = il3945_rates[prev_idx].table_rs_idx; 2337 table[idx].next_rate_idx = il3945_rates[prev_idx].table_rs_idx;
diff --git a/drivers/net/wireless/iwlegacy/3945.h b/drivers/net/wireless/iwlegacy/3945.h
index 2b2895c544d7..970e5c3a410a 100644
--- a/drivers/net/wireless/iwlegacy/3945.h
+++ b/drivers/net/wireless/iwlegacy/3945.h
@@ -476,24 +476,6 @@ struct il3945_shared {
476 __le32 tx_base_ptr[8]; 476 __le32 tx_base_ptr[8];
477} __packed; 477} __packed;
478 478
479static inline u8
480il3945_hw_get_rate(__le16 rate_n_flags)
481{
482 return le16_to_cpu(rate_n_flags) & 0xFF;
483}
484
485static inline u16
486il3945_hw_get_rate_n_flags(__le16 rate_n_flags)
487{
488 return le16_to_cpu(rate_n_flags);
489}
490
491static inline __le16
492il3945_hw_set_rate_n_flags(u8 rate, u16 flags)
493{
494 return cpu_to_le16((u16) rate | flags);
495}
496
497/************************************/ 479/************************************/
498/* iwl3945 Flow Handler Definitions */ 480/* iwl3945 Flow Handler Definitions */
499/************************************/ 481/************************************/