0001
0002
0003
0004 #ifndef _QTN_FMAC_DEBUG_H_
0005 #define _QTN_FMAC_DEBUG_H_
0006
0007 #include <linux/debugfs.h>
0008
0009 #include "core.h"
0010 #include "bus.h"
0011
0012 #ifdef CONFIG_DEBUG_FS
0013
0014 void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name);
0015 void qtnf_debugfs_remove(struct qtnf_bus *bus);
0016 void qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
0017 int (*fn)(struct seq_file *seq, void *data));
0018
0019 #else
0020
0021 static inline void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name)
0022 {
0023 }
0024
0025 static inline void qtnf_debugfs_remove(struct qtnf_bus *bus)
0026 {
0027 }
0028
0029 static inline void
0030 qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
0031 int (*fn)(struct seq_file *seq, void *data))
0032 {
0033 }
0034
0035 #endif
0036
0037 #endif