blob: a419002830a2f4e5feca191a0be22a6db934e58f [file] [log] [blame]
Kenneth Heitke42120dc2013-04-29 16:00:59 -06001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Kenneth Heitke98661912012-09-19 18:51:40 -06002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12#ifndef _SPMI_DBGFS_H
13#define _SPMI_DBGFS_H
14
Kenneth Heitke5998fab2013-01-22 16:09:19 -070015#include <linux/debugfs.h>
16
Kenneth Heitke98661912012-09-19 18:51:40 -060017#ifdef CONFIG_DEBUG_FS
18int spmi_dfs_add_controller(struct spmi_controller *ctrl);
Kenneth Heitke42120dc2013-04-29 16:00:59 -060019int spmi_dfs_del_controller(struct spmi_controller *ctrl);
Kenneth Heitke98661912012-09-19 18:51:40 -060020#else
Kiran Gunda0c33a962013-10-21 00:06:34 +053021static inline int spmi_dfs_add_controller(struct spmi_controller *ctrl)
22{
23 return 0;
24}
25static inline int spmi_dfs_del_controller(struct spmi_controller *ctrl)
26{
27 return 0;
28}
Kenneth Heitke98661912012-09-19 18:51:40 -060029#endif
30
Kenneth Heitke5998fab2013-01-22 16:09:19 -070031struct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl,
32 const char *name, void *data,
33 const struct file_operations *fops);
34
Kenneth Heitke98661912012-09-19 18:51:40 -060035#endif /* _SPMI_DBGFS_H */