summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 15:19:02 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 14:23:06 +0000
commitec4f00b87f65290c66299910b143615b196e01aa (patch)
tree7062e3db1bf5a5c858cb8fe2752984adcfc89830 /power
parentfe95147cea0ae9677808bb640c4be7ed05a9a34d (diff)
downloadchrome-ec-ec4f00b87f65290c66299910b143615b196e01aa.tar.gz
power/mt8186.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Ic24fcef55f8a7dfcfcab827a0b32a73cae41323c Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3727064 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'power')
-rw-r--r--power/mt8186.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/power/mt8186.c b/power/mt8186.c
index 39fc636127..fcbe94dcee 100644
--- a/power/mt8186.c
+++ b/power/mt8186.c
@@ -71,10 +71,11 @@
#ifndef CONFIG_ZEPHYR
/* power signal list. Must match order of enum power_signal. */
const struct power_signal_info power_signal_list[] = {
- {GPIO_AP_EC_SYSRST_ODL, POWER_SIGNAL_ACTIVE_LOW, "AP_IN_RST"},
- {GPIO_AP_IN_SLEEP_L, POWER_SIGNAL_ACTIVE_LOW, "AP_IN_S3"},
- {GPIO_AP_EC_WDTRST_L, POWER_SIGNAL_ACTIVE_LOW, "AP_WDT_ASSERTED"},
- {GPIO_AP_EC_WARM_RST_REQ, POWER_SIGNAL_ACTIVE_HIGH, "AP_WARM_RST_REQ"},
+ { GPIO_AP_EC_SYSRST_ODL, POWER_SIGNAL_ACTIVE_LOW, "AP_IN_RST" },
+ { GPIO_AP_IN_SLEEP_L, POWER_SIGNAL_ACTIVE_LOW, "AP_IN_S3" },
+ { GPIO_AP_EC_WDTRST_L, POWER_SIGNAL_ACTIVE_LOW, "AP_WDT_ASSERTED" },
+ { GPIO_AP_EC_WARM_RST_REQ, POWER_SIGNAL_ACTIVE_HIGH,
+ "AP_WARM_RST_REQ" },
};
BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT);
#endif /* CONFIG_ZEPHYR */
@@ -278,7 +279,7 @@ enum power_state power_chipset_init(void)
} else if (system_get_reset_flags() & EC_RESET_FLAG_AP_OFF) {
exit_hard_off = 0;
} else if ((system_get_reset_flags() & EC_RESET_FLAG_HIBERNATE) &&
- gpio_get_level(GPIO_AC_PRESENT)) {
+ gpio_get_level(GPIO_AC_PRESENT)) {
/*
* If AC present, assume this is a wake-up by AC insert.
* Boot EC only.
@@ -473,16 +474,15 @@ static void power_button_changed(void)
DECLARE_HOOK(HOOK_POWER_BUTTON_CHANGE, power_button_changed, HOOK_PRIO_DEFAULT);
#ifdef CONFIG_POWER_TRACK_HOST_SLEEP_STATE
-__override void power_chipset_handle_sleep_hang(
- enum sleep_hang_type hang_type)
+__override void power_chipset_handle_sleep_hang(enum sleep_hang_type hang_type)
{
CPRINTS("Warning: Detected sleep hang! Waking host up!");
host_set_single_event(EC_HOST_EVENT_HANG_DETECT);
}
-__override void power_chipset_handle_host_sleep_event(
- enum host_sleep_event state,
- struct host_sleep_event_context *ctx)
+__override void
+power_chipset_handle_host_sleep_event(enum host_sleep_event state,
+ struct host_sleep_event_context *ctx)
{
CPRINTS("Handle sleep: %d", state);
@@ -503,7 +503,6 @@ __override void power_chipset_handle_host_sleep_event(
sleep_set_notify(SLEEP_NOTIFY_RESUME);
task_wake(TASK_ID_CHIPSET);
sleep_complete_resume(ctx);
-
}
}
#endif /* CONFIG_POWER_TRACK_HOST_SLEEP_STATE */