]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
iwlwifi: move IWL_MASK into file using it
authorJohannes Berg <johannes.berg@intel.com>
Mon, 5 Mar 2012 19:24:45 +0000 (11:24 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 6 Mar 2012 20:16:14 +0000 (15:16 -0500)
Only used in two places in the same file,
no need to be in iwl-shared.h.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-shared.h
drivers/net/wireless/iwlwifi/iwl-trans-pcie.c

index 740a058b22ee126d593eaa92e5ebb42d574fa182..976e6c584ac7fa477c641952d8b5c0263aca575a 100644 (file)
@@ -444,7 +444,6 @@ iwl_remove_notification(struct iwl_shared *shrd,
                           struct iwl_notification_wait *wait_entry);
 
 #define IWL_CMD(x) case x: return #x
-#define IWL_MASK(lo, hi) ((1 << (hi)) | ((1 << (hi)) - (1 << (lo))))
 
 #define IWL_TRAFFIC_ENTRIES    (256)
 #define IWL_TRAFFIC_ENTRY_SIZE  (64)
index bb8f2fdf1281cae2f15ad73bff0de2bc33032606..3ae2fd720ed879cceb976780de34687c5332bb11 100644 (file)
@@ -78,6 +78,8 @@
 #include "iwl-core.h"
 #include "iwl-ucode.h"
 
+#define IWL_MASK(lo, hi) ((1 << (hi)) | ((1 << (hi)) - (1 << (lo))))
+
 static int iwl_trans_rx_alloc(struct iwl_trans *trans)
 {
        struct iwl_trans_pcie *trans_pcie =