blob: 2a0d815fec58ad1fd1c4b06295caad1f3511c9b8 [file] [log] [blame]
Kenneth Heitke98661912012-09-19 18:51:40 -06001/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
2 *
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);
19#else
Kenneth Heitke5998fab2013-01-22 16:09:19 -070020static int spmi_dfs_add_controller(struct spmi_controller *ctrl) { return 0; }
Kenneth Heitke98661912012-09-19 18:51:40 -060021#endif
22
Kenneth Heitke5998fab2013-01-22 16:09:19 -070023struct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl,
24 const char *name, void *data,
25 const struct file_operations *fops);
26
Kenneth Heitke98661912012-09-19 18:51:40 -060027#endif /* _SPMI_DBGFS_H */