compile: fix smarthome compile error [1/1]

PD#SWPL-6186

Problem:
smarthome compile error

Solution:
fix smarthome compile error

Verify:
compile OK

Change-Id: I6909374b8abbeac8ccb4bca760208d309d24f4bd
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
This commit is contained in:
Jianxin Pan
2019-03-31 00:32:00 +08:00
parent 900fa1c7c2
commit bdd6af7b03

View File

@@ -19,7 +19,25 @@
#define _POWER_CTRL_H_
#include <linux/types.h>
#ifdef CONFIG_AMLOGIC_POWER
int power_ctrl_sleep(bool power_on, unsigned int shift);
int power_ctrl_iso(bool power_on, unsigned int shift);
int power_ctrl_mempd0(bool power_on, unsigned int mask_val, unsigned int shift);
#else
static inline int power_ctrl_sleep(bool power_on, unsigned int shift)
{
return -EINVAL;
}
static inline int power_ctrl_iso(bool power_on, unsigned int shift)
{
return -EINVAL;
}
static inline int power_ctrl_mempd0(bool power_on, unsigned int mask_val,
unsigned int shift)
{
return -EINVAL;
}
#endif
#endif /*_POWER_CTRL_H_*/