From fd780d6b77801a4088a6f08d4bde11ab72c8ac2b Mon Sep 17 00:00:00 2001 From: Philip Chen Date: Tue, 20 Nov 2018 22:29:56 -0800 Subject: chipset: Provide default chipset_in_or_transitioning_to_state If HAS_TASK_CHIPSET is not defined, common/power.c is not compiled. So provide a default implementation which indicates the chipset is always off. BUG=b:119846880 BRANCH=scarlet TEST=emerge-scarlet chromeos-ec Change-Id: Ieb123bb27f088b3ec6b138b56db39a0d46016718 Signed-off-by: Philip Chen Reviewed-on: https://chromium-review.googlesource.com/c/1345914 Commit-Queue: Philip Chen Tested-by: Philip Chen Trybot-Ready: Philip Chen Reviewed-by: Nicolas Boichat Reviewed-by: Randall Spangler --- include/chipset.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/chipset.h b/include/chipset.h index 04cd1d84c7..3db4cf572a 100644 --- a/include/chipset.h +++ b/include/chipset.h @@ -110,6 +110,11 @@ static inline int chipset_in_state(int state_mask) return state_mask & CHIPSET_STATE_ANY_OFF; } +static inline int chipset_in_or_transitioning_to_state(int state_mask) +{ + return state_mask & CHIPSET_STATE_ANY_OFF; +} + static inline void chipset_exit_hard_off(void) { } static inline void chipset_throttle_cpu(int throttle) { } static inline void chipset_force_shutdown(void) { } -- cgit v1.2.1