diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 15:19:20 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-28 23:56:47 +0000 |
commit | aa8ce68a966aa13bd55fb1171f79b7ef813df273 (patch) | |
tree | 2069b80a58abf0209b9d1718f955ef10b730efaa /power | |
parent | 1690831a6723b2b83009db42f5af135d04ff7ce4 (diff) | |
download | chrome-ec-aa8ce68a966aa13bd55fb1171f79b7ef813df273.tar.gz |
power/skylake.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: I85667e3ac75888d8e36090ded5e20d82dd5eaa68
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730468
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'power')
-rw-r--r-- | power/skylake.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/power/skylake.c b/power/skylake.c index 511ab8c32f..883b6d0012 100644 --- a/power/skylake.c +++ b/power/skylake.c @@ -17,9 +17,9 @@ #include "timer.h" /* Console output macros */ -#define CPRINTS(format, args...) cprints(CC_CHIPSET, format, ## args) +#define CPRINTS(format, args...) cprints(CC_CHIPSET, format, ##args) -static int forcing_shutdown; /* Forced shutdown in progress? */ +static int forcing_shutdown; /* Forced shutdown in progress? */ /* Power signals list. Must match order of enum power_signal. */ const struct power_signal_info power_signal_list[] = { @@ -58,7 +58,6 @@ const struct power_signal_info power_signal_list[] = { }; BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT); - void chipset_force_shutdown(enum chipset_shutdown_reason reason) { CPRINTS("%s()", __func__); @@ -110,7 +109,7 @@ void chipset_handle_espi_reset_assert(void) * power button. If yes, release power button. */ if ((power_get_signals() & IN_PCH_SLP_SUS_DEASSERTED) && - forcing_shutdown) { + forcing_shutdown) { power_button_pch_release(); forcing_shutdown = 0; } @@ -157,9 +156,8 @@ void chipset_handle_reboot(void) * Do not make PMIC re-sequence the power rails if the following reset * conditions are not met. */ - if (!(flags & - (EC_RESET_FLAG_WATCHDOG | EC_RESET_FLAG_SOFT | - EC_RESET_FLAG_HARD))) + if (!(flags & (EC_RESET_FLAG_WATCHDOG | EC_RESET_FLAG_SOFT | + EC_RESET_FLAG_HARD))) return; /* Preserve AP off request. */ |