diff options
author | Philip Chen <philipchen@google.com> | 2018-11-20 22:29:56 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-11-21 22:49:18 -0800 |
commit | aa4b25ae7872e1a210060848cf1dbc773146e9ac (patch) | |
tree | ea453045df3f40290027e856149bd6dff64c1704 | |
parent | 77d256ad49a3ff836d8f8036d75389cf4fc614b6 (diff) | |
download | chrome-ec-aa4b25ae7872e1a210060848cf1dbc773146e9ac.tar.gz |
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 <philipchen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1346989
Commit-Ready: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
-rw-r--r-- | include/chipset.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/chipset.h b/include/chipset.h index 772114d356..a8a56cc631 100644 --- a/include/chipset.h +++ b/include/chipset.h @@ -176,6 +176,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(enum chipset_shutdown_reason reason) |