diff options
author | Shelley Chen <shchen@chromium.org> | 2017-01-17 10:14:41 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-18 16:06:50 -0800 |
commit | 5470e3b80e36e1c06015bca3aa4641d7268cf1e6 (patch) | |
tree | 0b2220f84dd378c71620c3287942cb8b04e705dd /common/power_button_x86.c | |
parent | 7a4accb77eb4b9b7cb57367c0d8acd57dc650f6b (diff) | |
download | chrome-ec-5470e3b80e36e1c06015bca3aa4641d7268cf1e6.tar.gz |
poppy: updating variable name to power_button_pulse_enable
Updating variable name from smi_enabled to
power_button_pulse_enabled, which is a more accurate
description of the intended functionality.
BUG=chrome-os-partner:61275
BRANCH=None
TEST=reboot reef and try using power button for selection
during the detachable menus and ensure that the
DUT doesn't turn off.
Change-Id: Ia04e032818c73439d2aeacdb8fcabbe3bce7c151
Signed-off-by: Shelley Chen <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/429070
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Diffstat (limited to 'common/power_button_x86.c')
-rw-r--r-- | common/power_button_x86.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/power_button_x86.c b/common/power_button_x86.c index ee85bc5c6d..9b75c51c26 100644 --- a/common/power_button_x86.c +++ b/common/power_button_x86.c @@ -115,7 +115,7 @@ static uint64_t tnext_state; /* * Determines whether to execute initial SMI pulse (t0 stage) */ -static int smi_enabled = 1; +static int power_button_pulse_enabled = 1; static void set_pwrbtn_to_pch(int high, int init) { @@ -272,7 +272,7 @@ static void state_machine(uint64_t tnow) pwrbtn_state = PWRBTN_STATE_WAS_OFF; set_pwrbtn_to_pch(0, 0); } else { - if (smi_enabled) { + if (power_button_pulse_enabled) { /* Chipset is on, so send the chipset a pulse */ tnext_state = tnow + PWRBTN_DELAY_T0; pwrbtn_state = PWRBTN_STATE_T0; @@ -479,7 +479,8 @@ static int hc_config_powerbtn_x86(struct host_cmd_handler_args *args) { const struct ec_params_config_power_button *p = args->params; - smi_enabled = p->flags & (1 << EC_POWER_BUTTON_ENABLE_SMI_PULSE); + power_button_pulse_enabled = + p->flags & (1 << EC_POWER_BUTTON_ENABLE_SMI_PULSE); return EC_SUCCESS; } |