Files

30 lines
515 B
C
Raw Permalink Normal View History

// SPDX-License-Identifier: GPL-2.0
/*
* Greybus debugfs code
*
* Copyright 2014 Google Inc.
2014-12-12 12:08:42 -06:00
* Copyright 2014 Linaro Ltd.
*/
#include <linux/debugfs.h>
#include <linux/greybus.h>
static struct dentry *gb_debug_root;
2015-06-09 17:42:50 -05:00
void __init gb_debugfs_init(void)
{
gb_debug_root = debugfs_create_dir("greybus", NULL);
}
2014-08-31 16:17:04 -07:00
void gb_debugfs_cleanup(void)
{
debugfs_remove_recursive(gb_debug_root);
2014-11-14 17:25:01 +05:30
gb_debug_root = NULL;
}
2015-03-18 15:42:51 +01:00
struct dentry *gb_debugfs_get(void)
{
return gb_debug_root;
}
EXPORT_SYMBOL_GPL(gb_debugfs_get);