diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-04-02 12:54:16 (GMT) |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-23 21:21:24 (GMT) |
commit | 26470b075a68c0bb31f114f6b9c4544b597e64eb (patch) | |
tree | 08559aeeb0008cab7f202df8725903fe46df1a06 /drivers/net | |
parent | 0e9f6aca344f457ac5c1b747e171d7db72e773fd (diff) | |
download | linux-26470b075a68c0bb31f114f6b9c4544b597e64eb.tar.xz |
iwlwifi: move iwl_have_debug_level
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debug.h | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-shared.h | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h index d3e1783..a7f3f33 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debug.h +++ b/drivers/net/wireless/iwlwifi/iwl-debug.h @@ -32,6 +32,12 @@ #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, ...); diff --git a/drivers/net/wireless/iwlwifi/iwl-shared.h b/drivers/net/wireless/iwlwifi/iwl-shared.h index 2abf4bb..e37dee4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-shared.h +++ b/drivers/net/wireless/iwlwifi/iwl-shared.h @@ -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__ */ |