spmi: Inline a function to remove compilation error

Compilation error is seen in spmi_dfs_add_controller
function when debug fs is disabled.
In this patch this function is defined as static
inline to remove this error.

CRs-Fixed: 555022
Change-Id: I66ac9ca9eeb1e25c68c9deff665258f4e036a678
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
This commit is contained in:
Kiran Gunda
2013-10-20 11:54:39 -07:00
committed by Gerrit - the friendly Code Review server
parent 9b378d810c
commit 0c33a96809
+8 -2
View File
@@ -18,8 +18,14 @@
int spmi_dfs_add_controller(struct spmi_controller *ctrl);
int spmi_dfs_del_controller(struct spmi_controller *ctrl);
#else
static int spmi_dfs_add_controller(struct spmi_controller *ctrl) { return 0; }
static int spmi_dfs_del_controller(struct spmi_controller *ctrl) { return 0; }
static inline int spmi_dfs_add_controller(struct spmi_controller *ctrl)
{
return 0;
}
static inline int spmi_dfs_del_controller(struct spmi_controller *ctrl)
{
return 0;
}
#endif
struct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl,