1
0
Fork 0

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>
hifive-unleashed-5.1
Johannes Berg 2012-04-02 14:54:16 +02:00 committed by Wey-Yi Guy
parent 0e9f6aca34
commit 26470b075a
2 changed files with 6 additions and 5 deletions

View File

@ -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, ...);

View 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__ */