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/nautilus | |
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/nautilus')
-rw-r--r-- | board/nautilus/board.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/nautilus/board.c b/board/nautilus/board.c index 5f79473bd7..48b316cd45 100644 --- a/board/nautilus/board.c +++ b/board/nautilus/board.c @@ -378,7 +378,8 @@ static void board_pmic_enable_slp_s0_vr_decay(void) i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992_FLAGS, 0x38, 0x7a); } -void power_board_handle_host_sleep_event(enum host_sleep_event state) +__override void power_board_handle_host_sleep_event( + enum host_sleep_event state) { if (state == HOST_SLEEP_EVENT_S0IX_SUSPEND) board_pmic_enable_slp_s0_vr_decay(); |