blob: d6dd12b5d4347a458f828daa01f9b423b9e7f511 [file] [log] [blame]
Igor Mitsyanko98f44cb2017-05-11 14:51:01 -07001/*
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
27void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name);
28void qtnf_debugfs_remove(struct qtnf_bus *bus);
29void qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
30 int (*fn)(struct seq_file *seq, void *data));
31
32#else
33
34static inline void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name)
35{
36}
37
38static inline void qtnf_debugfs_remove(struct qtnf_bus *bus)
39{
40}
41
42static inline void
43qtnf_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_ */