greybus: Export greybus debugfs folder
authorAlexandre Bailon <abailon@baylibre.com>
Wed, 18 Mar 2015 14:42:51 +0000 (15:42 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 19 Mar 2015 14:02:28 +0000 (15:02 +0100)
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>
drivers/staging/greybus/debugfs.c
drivers/staging/greybus/greybus.h

index 770b7c0..b8865d7 100644 (file)
@@ -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);
index 68382b3..967d64f 100644 (file)
@@ -160,6 +160,7 @@ int gb_ap_init(void);
 void gb_ap_exit(void);
 int gb_debugfs_init(void);
 void gb_debugfs_cleanup(void);
+struct dentry *gb_debugfs_get(void);
 
 extern struct bus_type greybus_bus_type;