forked from rubenslte/android_kernel_samsung_msm8226
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:
committed by
Gerrit - the friendly Code Review server
parent
9b378d810c
commit
0c33a96809
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user