1 /*
2  * Copyright (c) 2015-2016 Quantenna Communications, Inc.
3  * All rights reserved.
4  *
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.
9  *
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.
14  *
15  */
16 
17 #ifndef _QTN_FMAC_DEBUG_H_
18 #define _QTN_FMAC_DEBUG_H_
19 
20 #include <linux/debugfs.h>
21 
22 #include "core.h"
23 #include "bus.h"
24 
25 #ifdef CONFIG_DEBUG_FS
26 
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));
31 
32 #else
33 
34 static inline void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name)
35 {
36 }
37 
38 static inline void qtnf_debugfs_remove(struct qtnf_bus *bus)
39 {
40 }
41 
42 static inline void
43 qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
44 		       int (*fn)(struct seq_file *seq, void *data))
45 {
46 }
47 
48 #endif /* CONFIG_DEBUG_FS */
49 
50 #endif /* _QTN_FMAC_DEBUG_H_ */
51