WIP FPC-III support
[linux/fpc-iii.git] / drivers / greybus / debugfs.c
blobe102d7badb9d90f0581067f334d64c986d72e54f
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Greybus debugfs code
5 * Copyright 2014 Google Inc.
6 * Copyright 2014 Linaro Ltd.
7 */
9 #include <linux/debugfs.h>
10 #include <linux/greybus.h>
12 static struct dentry *gb_debug_root;
14 void __init gb_debugfs_init(void)
16 gb_debug_root = debugfs_create_dir("greybus", NULL);
19 void gb_debugfs_cleanup(void)
21 debugfs_remove_recursive(gb_debug_root);
22 gb_debug_root = NULL;
25 struct dentry *gb_debugfs_get(void)
27 return gb_debug_root;
29 EXPORT_SYMBOL_GPL(gb_debugfs_get);