iwlwifi: move debugfs registration function declarations
They clearly belong into iwl-agn.h as they have no relation to the (generic) debug logging framework. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
This commit is contained in:
parent
f9e75447d9
commit
0e9f6aca34
|
@ -474,6 +474,19 @@ static inline void iwl_dvm_set_pmi(struct iwl_priv *priv, bool state)
|
||||||
iwl_trans_set_pmi(priv->trans, state);
|
iwl_trans_set_pmi(priv->trans, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_IWLWIFI_DEBUGFS
|
||||||
|
int iwl_dbgfs_register(struct iwl_priv *priv, const char *name);
|
||||||
|
void iwl_dbgfs_unregister(struct iwl_priv *priv);
|
||||||
|
#else
|
||||||
|
static inline int iwl_dbgfs_register(struct iwl_priv *priv, const char *name)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
static inline void iwl_dbgfs_unregister(struct iwl_priv *priv)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_IWLWIFI_DEBUGFS */
|
||||||
|
|
||||||
#ifdef CONFIG_IWLWIFI_DEBUG
|
#ifdef CONFIG_IWLWIFI_DEBUG
|
||||||
#define IWL_DEBUG_QUIET_RFKILL(m, fmt, args...) \
|
#define IWL_DEBUG_QUIET_RFKILL(m, fmt, args...) \
|
||||||
do { \
|
do { \
|
||||||
|
|
|
@ -32,8 +32,6 @@
|
||||||
#include "iwl-shared.h"
|
#include "iwl-shared.h"
|
||||||
#include "iwl-devtrace.h"
|
#include "iwl-devtrace.h"
|
||||||
|
|
||||||
struct iwl_priv;
|
|
||||||
|
|
||||||
void __iwl_err(struct device *dev, bool rfkill_prefix, bool only_trace,
|
void __iwl_err(struct device *dev, bool rfkill_prefix, bool only_trace,
|
||||||
const char *fmt, ...);
|
const char *fmt, ...);
|
||||||
void __iwl_warn(struct device *dev, const char *fmt, ...);
|
void __iwl_warn(struct device *dev, const char *fmt, ...);
|
||||||
|
@ -80,19 +78,6 @@ do { \
|
||||||
#define iwl_print_hex_dump(m, level, p, len)
|
#define iwl_print_hex_dump(m, level, p, len)
|
||||||
#endif /* CONFIG_IWLWIFI_DEBUG */
|
#endif /* CONFIG_IWLWIFI_DEBUG */
|
||||||
|
|
||||||
#ifdef CONFIG_IWLWIFI_DEBUGFS
|
|
||||||
int iwl_dbgfs_register(struct iwl_priv *priv, const char *name);
|
|
||||||
void iwl_dbgfs_unregister(struct iwl_priv *priv);
|
|
||||||
#else
|
|
||||||
static inline int iwl_dbgfs_register(struct iwl_priv *priv, const char *name)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
static inline void iwl_dbgfs_unregister(struct iwl_priv *priv)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_IWLWIFI_DEBUGFS */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* To use the debug system:
|
* To use the debug system:
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue