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

Commit 13a82c22 authored by Kiran Gunda's avatar Kiran Gunda
Browse files

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: default avatarKiran Gunda <kgunda@codeaurora.org>
parent 7182485d
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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,