Commit e8f824b6 authored by Alexandre Bailon's avatar Alexandre Bailon Committed by Greg Kroah-Hartman

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: default avatarAlexandre Bailon <abailon@baylibre.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent afcf8c71
...@@ -29,3 +29,9 @@ void gb_debugfs_cleanup(void) ...@@ -29,3 +29,9 @@ void gb_debugfs_cleanup(void)
debugfs_remove_recursive(gb_debug_root); debugfs_remove_recursive(gb_debug_root);
gb_debug_root = NULL; gb_debug_root = NULL;
} }
struct dentry *gb_debugfs_get(void)
{
return gb_debug_root;
}
EXPORT_SYMBOL_GPL(gb_debugfs_get);
...@@ -160,6 +160,7 @@ int gb_ap_init(void); ...@@ -160,6 +160,7 @@ int gb_ap_init(void);
void gb_ap_exit(void); void gb_ap_exit(void);
int gb_debugfs_init(void); int gb_debugfs_init(void);
void gb_debugfs_cleanup(void); void gb_debugfs_cleanup(void);
struct dentry *gb_debugfs_get(void);
extern struct bus_type greybus_bus_type; extern struct bus_type greybus_bus_type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment