Linux Audio

Check our new training course

Loading...
 1// SPDX-License-Identifier: GPL-2.0
 2/*
 3 * Greybus debugfs code
 4 *
 5 * Copyright 2014 Google Inc.
 6 * Copyright 2014 Linaro Ltd.
 7 */
 8
 9#include <linux/debugfs.h>
10#include <linux/greybus.h>
11
12static struct dentry *gb_debug_root;
13
14void __init gb_debugfs_init(void)
15{
16	gb_debug_root = debugfs_create_dir("greybus", NULL);
17}
18
19void gb_debugfs_cleanup(void)
20{
21	debugfs_remove_recursive(gb_debug_root);
22	gb_debug_root = NULL;
23}
24
25struct dentry *gb_debugfs_get(void)
26{
27	return gb_debug_root;
28}
29EXPORT_SYMBOL_GPL(gb_debugfs_get);
1