diff options
author | Yilun Lin <yllin@chromium.org> | 2019-08-20 13:46:44 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-22 08:48:58 +0000 |
commit | be490b7261308362c6831ba2804c1504ba6aac15 (patch) | |
tree | df7beea4424b322f718ce9016d89eb4314188ae6 /board/samus | |
parent | 60c1f84d024395fac90f144ad5a027f56b5ff3d0 (diff) | |
download | chrome-ec-be490b7261308362c6831ba2804c1504ba6aac15.tar.gz |
power: Replace weak attr with __overridable
This CL annotates __overridable to the following functions:
board_system_is_idle
power_chipset_handle_host_sleep_event
power_board_handle_host_sleep_event
TEST=make buildall
BUG=none
BRANCH=none
Change-Id: I0168b69c49fab5672238711d4f3a6a5517cdd8b3
Signed-off-by: Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1761759
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/samus')
-rw-r--r-- | board/samus/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/samus/board.c b/board/samus/board.c index 02b80940f8..a7ec373d62 100644 --- a/board/samus/board.c +++ b/board/samus/board.c @@ -478,8 +478,8 @@ enum ec_error_list keyboard_scancode_callback(uint16_t *make_code, #define HIBERNATE_BATT_PCT 10 #define HIBERNATE_BATT_SEC (3600 * 24) -enum critical_shutdown board_system_is_idle(uint64_t last_shutdown_time, - uint64_t *target, uint64_t now) +__override enum critical_shutdown board_system_is_idle( + uint64_t last_shutdown_time, uint64_t *target, uint64_t now) { if (charge_get_percent() <= HIBERNATE_BATT_PCT) { uint64_t t = last_shutdown_time + HIBERNATE_BATT_SEC * SEC_UL; |