aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-10-28 17:18:58 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-10-30 15:26:52 -0400
commit7a1283d8f5298437a454ec477384dcd9f9f88bac (patch)
tree1a0dd00ece0e81c4526540648b535dd8b18a919c /drivers/net/wireless/ath
parent9a06bec9aee0ae54f175b20a8d4f5e14aef24a9f (diff)
carl9170: Convert byte_rev_table uses to bitrev8
Use the inline function instead of directly indexing the array. This allows some architectures with hardware instructions for bit reversals to eliminate the array. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/carl9170/phy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/carl9170/phy.c b/drivers/net/wireless/ath/carl9170/phy.c
index b80b2138ce3c..dca6df13fd5b 100644
--- a/drivers/net/wireless/ath/carl9170/phy.c
+++ b/drivers/net/wireless/ath/carl9170/phy.c
@@ -994,7 +994,7 @@ static int carl9170_init_rf_bank4_pwr(struct ar9170 *ar, bool band5ghz,
994 refsel0 = 0; 994 refsel0 = 0;
995 refsel1 = 1; 995 refsel1 = 1;
996 } 996 }
997 chansel = byte_rev_table[chansel]; 997 chansel = bitrev8(chansel);
998 } else { 998 } else {
999 if (freq == 2484) { 999 if (freq == 2484) {
1000 chansel = 10 + (freq - 2274) / 5; 1000 chansel = 10 + (freq - 2274) / 5;
@@ -1002,7 +1002,7 @@ static int carl9170_init_rf_bank4_pwr(struct ar9170 *ar, bool band5ghz,
1002 } else 1002 } else
1003 chansel = 16 + (freq - 2272) / 5; 1003 chansel = 16 + (freq - 2272) / 5;
1004 chansel *= 4; 1004 chansel *= 4;
1005 chansel = byte_rev_table[chansel]; 1005 chansel = bitrev8(chansel);
1006 } 1006 }
1007 1007
1008 d1 = chansel; 1008 d1 = chansel;