1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */
4 #ifndef _QTN_FMAC_DEBUG_H_
5 #define _QTN_FMAC_DEBUG_H_
7 #include <linux/debugfs.h>
12 #ifdef CONFIG_DEBUG_FS
14 void qtnf_debugfs_init(struct qtnf_bus
*bus
, const char *name
);
15 void qtnf_debugfs_remove(struct qtnf_bus
*bus
);
16 void qtnf_debugfs_add_entry(struct qtnf_bus
*bus
, const char *name
,
17 int (*fn
)(struct seq_file
*seq
, void *data
));
21 static inline void qtnf_debugfs_init(struct qtnf_bus
*bus
, const char *name
)
25 static inline void qtnf_debugfs_remove(struct qtnf_bus
*bus
)
30 qtnf_debugfs_add_entry(struct qtnf_bus
*bus
, const char *name
,
31 int (*fn
)(struct seq_file
*seq
, void *data
))
35 #endif /* CONFIG_DEBUG_FS */
37 #endif /* _QTN_FMAC_DEBUG_H_ */