msm: scm: Provide empty stubs for scm functions

Instead of making other code dependent on #ifdef
CONFIG_MSM_SCM, add empty stubs for the scm functions

Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
This commit is contained in:
Rohit Vaswani
2011-09-29 16:24:14 -07:00
committed by Bryan Huntsman
parent c5d6a37c7f
commit ece229ddc1

View File

@@ -20,6 +20,7 @@
#define SCM_SVC_INFO 0x6
#define SCM_SVC_TZSCHEDULER 0xFC
#ifdef CONFIG_MSM_SCM
extern int scm_call(u32 svc_id, u32 cmd_id, const void *cmd_buf, size_t cmd_len,
void *resp_buf, size_t resp_len);
@@ -31,4 +32,33 @@ extern u32 scm_call_atomic2(u32 svc, u32 cmd, u32 arg1, u32 arg2);
extern u32 scm_get_version(void);
extern int scm_is_call_available(u32 svc_id, u32 cmd_id);
#else
static inline int scm_call(u32 svc_id, u32 cmd_id, const void *cmd_buf,
size_t cmd_len, void *resp_buf, size_t resp_len)
{
return 0;
}
static inline u32 scm_call_atomic1(u32 svc, u32 cmd, u32 arg1)
{
return 0;
}
static inline u32 scm_call_atomic2(u32 svc, u32 cmd, u32 arg1, u32 arg2)
{
return 0;
}
static inline u32 scm_get_version(void)
{
return 0;
}
static inline int scm_is_call_available(u32 svc_id, u32 cmd_id)
{
return 0;
}
#endif
#endif