Linux Audio

Check our new training course

Loading...
v6.8
 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_ */
v4.17
 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
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_ */