]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
iwlwifi: move iwl_have_debug_level
authorJohannes Berg <johannes.berg@intel.com>
Mon, 2 Apr 2012 12:54:16 +0000 (14:54 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 23 Apr 2012 21:21:24 +0000 (14:21 -0700)
This function belongs into the debugging framework.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-debug.h
drivers/net/wireless/iwlwifi/iwl-shared.h

index d3e1783b1500ccf54b61943c84162ecb45903b59..a7f3f339c48e70e6d772bbbf597ef2ba252b2853 100644 (file)
 #include "iwl-shared.h"
 #include "iwl-devtrace.h"
 
+
+static inline bool iwl_have_debug_level(u32 level)
+{
+       return iwlagn_mod_params.debug_level & level;
+}
+
 void __iwl_err(struct device *dev, bool rfkill_prefix, bool only_trace,
                const char *fmt, ...);
 void __iwl_warn(struct device *dev, const char *fmt, ...);
index 2abf4bb6fa184d5f72c6436dc7ebd656a5bda81f..e37dee403b9728157c0c3d7c3a16e3a128ec4274 100644 (file)
@@ -121,9 +121,4 @@ struct iwl_mod_params {
        bool auto_agg;
 };
 
-static inline bool iwl_have_debug_level(u32 level)
-{
-       return iwlagn_mod_params.debug_level & level;
-}
-
 #endif /* #__iwl_shared_h__ */