mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -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_*/
|
||||
|
||||
Reference in New Issue
Block a user