summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/debugfs.c
diff options
context:
space:
mode:
authorAlexandre Bailon <abailon@baylibre.com>2015-03-18 15:42:51 +0100
committerGreg Kroah-Hartman <greg@kroah.com>2015-03-19 15:02:28 +0100
commite8f824b6589cd5477adf7a069e7c67918a6bb949 (patch)
tree83739af58d4561587cd4086cf087019ebd163cca /drivers/staging/greybus/debugfs.c
parentafcf8c715e7cb615dad484913b70c714594ce159 (diff)
greybus: Export greybus debugfs folder
Add gb_debugfs_get method to access to gb_debug_root dentry, in order to use it from other greybus modules. Signed-off-by: Alexandre Bailon <abailon@baylibre.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/debugfs.c')
-rw-r--r--drivers/staging/greybus/debugfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/greybus/debugfs.c b/drivers/staging/greybus/debugfs.c
index 770b7c0857d3..b8865d707362 100644
--- a/drivers/staging/greybus/debugfs.c
+++ b/drivers/staging/greybus/debugfs.c
@@ -29,3 +29,9 @@ void gb_debugfs_cleanup(void)
debugfs_remove_recursive(gb_debug_root);
gb_debug_root = NULL;
}
+
+struct dentry *gb_debugfs_get(void)
+{
+ return gb_debug_root;
+}
+EXPORT_SYMBOL_GPL(gb_debugfs_get);