Input: sprd_eic_keys: remove event log
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / drivers / sipc / sipc_debugfs.c
1 /*
2  * Copyright (C) 2012 Spreadtrum Communications Inc.
3  *
4  * This software is licensed under the terms of the GNU General Public
5  * License version 2, as published by the Free Software Foundation, and
6  * may be copied, distributed, and modified under those terms.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  */
13
14 #include <linux/module.h>
15 #include <linux/kernel.h>
16 #include <linux/init.h>
17 #include <linux/debugfs.h>
18 #include <linux/seq_file.h>
19 #include <asm/uaccess.h>
20
21 #include <linux/sipc.h>
22
23 #if defined(CONFIG_DEBUG_FS)
24
25 extern int sbuf_init_debugfs( void *root );
26 extern int smsg_init_debugfs( void *root );
27 extern int sblock_init_debugfs( void *root );
28 extern int smem_init_debugfs( void *root );
29
30 static int __init sipc_init_debugfs( void)
31 {
32         struct dentry *root = debugfs_create_dir("sipc", NULL);
33         if (!root)
34                 return -ENXIO;
35
36         smsg_init_debugfs(root);
37         sbuf_init_debugfs(root);
38         sblock_init_debugfs(root);
39         smem_init_debugfs(root);
40         return 0;
41 }
42
43 __initcall(sipc_init_debugfs);
44
45 #endif /* CONFIG_DEBUG_FS */