powercap: restrict energy meter to root access
[linux/fpc-iii.git] / drivers / staging / greybus / debugfs.c
bloba9d4d3da99a0da60daada42c0d9348d4fa4fd5b1
1 /*
2 * Greybus debugfs code
4 * Copyright 2014 Google Inc.
5 * Copyright 2014 Linaro Ltd.
7 * Released under the GPLv2 only.
8 */
10 #include <linux/debugfs.h>
12 #include "greybus.h"
14 static struct dentry *gb_debug_root;
16 void __init gb_debugfs_init(void)
18 gb_debug_root = debugfs_create_dir("greybus", NULL);
21 void gb_debugfs_cleanup(void)
23 debugfs_remove_recursive(gb_debug_root);
24 gb_debug_root = NULL;
27 struct dentry *gb_debugfs_get(void)
29 return gb_debug_root;
31 EXPORT_SYMBOL_GPL(gb_debugfs_get);