debug.h (853B)
1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */ 3 4#ifndef _QTN_FMAC_DEBUG_H_ 5#define _QTN_FMAC_DEBUG_H_ 6 7#include <linux/debugfs.h> 8 9#include "core.h" 10#include "bus.h" 11 12#ifdef CONFIG_DEBUG_FS 13 14void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name); 15void qtnf_debugfs_remove(struct qtnf_bus *bus); 16void qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name, 17 int (*fn)(struct seq_file *seq, void *data)); 18 19#else 20 21static inline void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name) 22{ 23} 24 25static inline void qtnf_debugfs_remove(struct qtnf_bus *bus) 26{ 27} 28 29static inline void 30qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name, 31 int (*fn)(struct seq_file *seq, void *data)) 32{ 33} 34 35#endif /* CONFIG_DEBUG_FS */ 36 37#endif /* _QTN_FMAC_DEBUG_H_ */