Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26470b07 authored by Johannes Berg's avatar Johannes Berg Committed by Wey-Yi Guy
Browse files

iwlwifi: move iwl_have_debug_level



This function belongs into the debugging framework.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
parent 0e9f6aca
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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, ...);
+0 −5
Original line number Diff line number Diff line
@@ -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__ */