blob: 10e98b9eddb57b3933098e47337c3bbe1e73d9ad [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
Kenneth Heitke5998fab2013-01-22 16:09:19 -070021static int spmi_dfs_add_controller(struct spmi_controller *ctrl) { return 0; }
Kenneth Heitke42120dc2013-04-29 16:00:59 -060022static int spmi_dfs_del_controller(struct spmi_controller *ctrl) { return 0; }
Kenneth Heitke98661912012-09-19 18:51:40 -060023#endif
24
Kenneth Heitke5998fab2013-01-22 16:09:19 -070025struct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl,
26 const char *name, void *data,
27 const struct file_operations *fops);
28
Kenneth Heitke98661912012-09-19 18:51:40 -060029#endif /* _SPMI_DBGFS_H */