Kenneth Heitke | 9866191 | 2012-09-19 18:51:40 -0600 | [diff] [blame] | 1 | /* 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 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); |
| 19 | #else |
Kenneth Heitke | 5998fab | 2013-01-22 16:09:19 -0700 | [diff] [blame] | 20 | static int spmi_dfs_add_controller(struct spmi_controller *ctrl) { return 0; } |
Kenneth Heitke | 9866191 | 2012-09-19 18:51:40 -0600 | [diff] [blame] | 21 | #endif |
| 22 | |
Kenneth Heitke | 5998fab | 2013-01-22 16:09:19 -0700 | [diff] [blame] | 23 | struct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl, |
| 24 | const char *name, void *data, |
| 25 | const struct file_operations *fops); |
| 26 | |
Kenneth Heitke | 9866191 | 2012-09-19 18:51:40 -0600 | [diff] [blame] | 27 | #endif /* _SPMI_DBGFS_H */ |