Linux Audio

Check our new training course

Loading...
v4.6
 
 1/*
 2 * Intel(R) Trace Hub driver debugging
 3 *
 4 * Copyright (C) 2014-2015 Intel Corporation.
 5 *
 6 * This program is free software; you can redistribute it and/or modify it
 7 * under the terms and conditions of the GNU General Public License,
 8 * version 2, as published by the Free Software Foundation.
 9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13 * more details.
14 */
15
16#include <linux/types.h>
17#include <linux/device.h>
18#include <linux/debugfs.h>
19
20#include "intel_th.h"
21#include "debug.h"
22
23struct dentry *intel_th_dbg;
24
25void intel_th_debug_init(void)
26{
27	intel_th_dbg = debugfs_create_dir("intel_th", NULL);
28	if (IS_ERR(intel_th_dbg))
29		intel_th_dbg = NULL;
30}
31
32void intel_th_debug_done(void)
33{
34	debugfs_remove(intel_th_dbg);
35	intel_th_dbg = NULL;
36}
v6.8
 1// SPDX-License-Identifier: GPL-2.0
 2/*
 3 * Intel(R) Trace Hub driver debugging
 4 *
 5 * Copyright (C) 2014-2015 Intel Corporation.
 
 
 
 
 
 
 
 
 
 6 */
 7
 8#include <linux/types.h>
 9#include <linux/device.h>
10#include <linux/debugfs.h>
11
12#include "intel_th.h"
13#include "debug.h"
14
15struct dentry *intel_th_dbg;
16
17void intel_th_debug_init(void)
18{
19	intel_th_dbg = debugfs_create_dir("intel_th", NULL);
20	if (IS_ERR(intel_th_dbg))
21		intel_th_dbg = NULL;
22}
23
24void intel_th_debug_done(void)
25{
26	debugfs_remove(intel_th_dbg);
27	intel_th_dbg = NULL;
28}