aboutsummaryrefslogtreecommitdiffstats
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
parentgreybus: uart: remove packed-attribute from line-coding struct (diff)
downloadlinux-dev-e8f824b6589cd5477adf7a069e7c67918a6bb949.tar.xz
linux-dev-e8f824b6589cd5477adf7a069e7c67918a6bb949.zip
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>
-rw-r--r--drivers/staging/greybus/debugfs.c6
-rw-r--r--drivers/staging/greybus/greybus.h1
2 files changed, 7 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);
diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h
index 68382b383390..967d64faa8fd 100644
--- a/drivers/staging/greybus/greybus.h
+++ b/drivers/staging/greybus/greybus.h
@@ -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;