]> Pileus Git - ~andy/linux/commitdiff
iwlegacy: move IL_MASK
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 31 Aug 2011 09:18:16 +0000 (11:18 +0200)
committerStanislaw Gruszka <sgruszka@redhat.com>
Tue, 15 Nov 2011 13:12:06 +0000 (14:12 +0100)
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
drivers/net/wireless/iwlegacy/4965-mac.c
drivers/net/wireless/iwlegacy/iwl-helpers.h

index 2bab0fc34d1019863d9a7cab302ebc5d33920e07..dbe5bf2d5791726390c44dfe66deda33ff4883e4 100644 (file)
@@ -4944,6 +4944,8 @@ static const s8 default_queue_to_tx_fifo[] = {
        IL_TX_FIFO_UNUSED,
 };
 
+#define IL_MASK(lo, hi) ((1 << (hi)) | ((1 << (hi)) - (1 << (lo))))
+
 static int il4965_alive_notify(struct il_priv *il)
 {
        u32 a;
index eb5a287f2254ffddd49242bff6067f4b5e18d11b..2db83fc321036c5f6b84aeaa8e9ab203ed2f3f48 100644 (file)
@@ -35,9 +35,6 @@
 
 #include "iwl-io.h"
 
-#define IL_MASK(lo, hi) ((1 << (hi)) | ((1 << (hi)) - (1 << (lo))))
-
-
 /**
  * il_queue_inc_wrap - increment queue idx, wrap back to beginning
  * @idx -- current idx