]> Git Repo - linux.git/blob - drivers/staging/greybus/debugfs.c
Merge tag 'acpi-fix-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[linux.git] / drivers / staging / greybus / debugfs.c
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
11 #include "greybus.h"
12
13 static struct dentry *gb_debug_root;
14
15 void __init gb_debugfs_init(void)
16 {
17         gb_debug_root = debugfs_create_dir("greybus", NULL);
18 }
19
20 void gb_debugfs_cleanup(void)
21 {
22         debugfs_remove_recursive(gb_debug_root);
23         gb_debug_root = NULL;
24 }
25
26 struct dentry *gb_debugfs_get(void)
27 {
28         return gb_debug_root;
29 }
30 EXPORT_SYMBOL_GPL(gb_debugfs_get);
This page took 0.032507 seconds and 4 git commands to generate.