Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f5125e0 authored by Olav Haugan's avatar Olav Haugan
Browse files

spmi: Fix compilation error when debugfs is disabled



Code does not compile with debugfs disabled. Fix this.

Change-Id: I11fa09401f29e9f2fb65d19668cae455253f6355
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent 2ad03a09
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -17,6 +17,9 @@
#ifdef CONFIG_DEBUG_FS
int spmi_dfs_add_controller(struct spmi_controller *ctrl);
int spmi_dfs_del_controller(struct spmi_controller *ctrl);
struct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl,
					const char *name, void *data,
					const struct file_operations *fops);
#else
static inline int spmi_dfs_add_controller(struct spmi_controller *ctrl)
{
@@ -26,10 +29,13 @@ static inline int spmi_dfs_del_controller(struct spmi_controller *ctrl)
{
	return 0;
}
#endif

struct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl,
static inline struct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl,
					const char *name, void *data,
					const struct file_operations *fops);
					const struct file_operations *fops)
{
	return 0;
}
#endif

#endif /* _SPMI_DBGFS_H */