2 * Copyright (c) 2015-2016 Quantenna Communications, Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
17 #ifndef _QTN_FMAC_DEBUG_H_
18 #define _QTN_FMAC_DEBUG_H_
20 #include <linux/debugfs.h>
25 #ifdef CONFIG_DEBUG_FS
27 void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name);
28 void qtnf_debugfs_remove(struct qtnf_bus *bus);
29 void qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
30 int (*fn)(struct seq_file *seq, void *data));
34 static inline void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name)
38 static inline void qtnf_debugfs_remove(struct qtnf_bus *bus)
43 qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
44 int (*fn)(struct seq_file *seq, void *data))
48 #endif /* CONFIG_DEBUG_FS */
50 #endif /* _QTN_FMAC_DEBUG_H_ */