Kenneth Heitke | 42120dc | 2013-04-29 16:00:59 -0600 | [diff] [blame] | 1 | /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
Kenneth Heitke | 9866191 | 2012-09-19 18:51:40 -0600 | [diff] [blame] | 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 Heitke | 5998fab | 2013-01-22 16:09:19 -0700 | [diff] [blame] | 15 | #include <linux/debugfs.h> |
| 16 | |
Kenneth Heitke | 9866191 | 2012-09-19 18:51:40 -0600 | [diff] [blame] | 17 | #ifdef CONFIG_DEBUG_FS |
| 18 | int spmi_dfs_add_controller(struct spmi_controller *ctrl); |
Kenneth Heitke | 42120dc | 2013-04-29 16:00:59 -0600 | [diff] [blame] | 19 | int spmi_dfs_del_controller(struct spmi_controller *ctrl); |
Kenneth Heitke | 9866191 | 2012-09-19 18:51:40 -0600 | [diff] [blame] | 20 | #else |
Kenneth Heitke | 5998fab | 2013-01-22 16:09:19 -0700 | [diff] [blame] | 21 | static int spmi_dfs_add_controller(struct spmi_controller *ctrl) { return 0; } |
Kenneth Heitke | 42120dc | 2013-04-29 16:00:59 -0600 | [diff] [blame] | 22 | static int spmi_dfs_del_controller(struct spmi_controller *ctrl) { return 0; } |
Kenneth Heitke | 9866191 | 2012-09-19 18:51:40 -0600 | [diff] [blame] | 23 | #endif |
| 24 | |
Kenneth Heitke | 5998fab | 2013-01-22 16:09:19 -0700 | [diff] [blame] | 25 | struct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl, |
| 26 | const char *name, void *data, |
| 27 | const struct file_operations *fops); |
| 28 | |
Kenneth Heitke | 9866191 | 2012-09-19 18:51:40 -0600 | [diff] [blame] | 29 | #endif /* _SPMI_DBGFS_H */ |