0001
0002
0003
0004
0005
0006
0007
0008
0009 #include <linux/debugfs.h>
0010 #include <linux/greybus.h>
0011
0012 static struct dentry *gb_debug_root;
0013
0014 void __init gb_debugfs_init(void)
0015 {
0016 gb_debug_root = debugfs_create_dir("greybus", NULL);
0017 }
0018
0019 void gb_debugfs_cleanup(void)
0020 {
0021 debugfs_remove_recursive(gb_debug_root);
0022 gb_debug_root = NULL;
0023 }
0024
0025 struct dentry *gb_debugfs_get(void)
0026 {
0027 return gb_debug_root;
0028 }
0029 EXPORT_SYMBOL_GPL(gb_debugfs_get);