brintos

brintos / linux-shallow public Read only

0
0
Text · 853 B · 61b4553 Raw
38 lines · c
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_FS13 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#else20 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 void30qtnf_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_ */38