diff options
author | Sam Hurst <shurst@google.com> | 2017-02-01 09:20:22 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-02-06 14:50:32 -0800 |
commit | edf46467b9519478885375b393fadcdbdd90dde4 (patch) | |
tree | ea18c2e91481fb255352dd2a89e56b848cf4c6a5 /common/power_button_x86.c | |
parent | 2e0df8b6c66c2150dbac853a1abe67d41e46acf9 (diff) | |
download | chrome-ec-edf46467b9519478885375b393fadcdbdd90dde4.tar.gz |
cleanup: Remove charge_state_v1
All boards have been transitioned to charge_state_v2.c
So charge_state_v1.c, HOOK_CHARGE_STATE_CHANGE, and
CONFIG_CHARGER_TIMEOUT_HOURS can be removed
BUG=chrome-os-partner:36272
TEST=make -j buildall
BRANCH=none
Change-Id: I3f20c5198ea75185f9894deb792575a1be31432a
Reviewed-on: https://chromium-review.googlesource.com/435467
Commit-Ready: Sam Hurst <shurst@google.com>
Tested-by: Sam Hurst <shurst@google.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'common/power_button_x86.c')
-rw-r--r-- | common/power_button_x86.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/common/power_button_x86.c b/common/power_button_x86.c index 9b75c51c26..aa5f17150f 100644 --- a/common/power_button_x86.c +++ b/common/power_button_x86.c @@ -459,20 +459,6 @@ static void powerbtn_x86_changed(void) DECLARE_HOOK(HOOK_POWER_BUTTON_CHANGE, powerbtn_x86_changed, HOOK_PRIO_DEFAULT); /** - * Handle charge state changes - */ -static void powerbtn_x86_charge(void) -{ - /* - * If we were waiting for the charge state machine to init before we - * powered on the chipset, we can stop waiting. - */ - if (pwrbtn_state == PWRBTN_STATE_INIT_ON) - task_wake(TASK_ID_POWERBTN); -} -DECLARE_HOOK(HOOK_CHARGE_STATE_CHANGE, powerbtn_x86_charge, HOOK_PRIO_DEFAULT); - -/** * Handle configuring the power button behavior through a host command */ static int hc_config_powerbtn_x86(struct host_cmd_handler_args *args) |