summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 15:18:45 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-29 06:39:24 +0000
commit1bdcca7d756468566304989e988ac9ab9709013f (patch)
tree9d2e2e545ac8472c612402e25cbf4d054cf123e1 /power
parent1599be0fd40e2570b790b0f9f1532268a5bae3bf (diff)
downloadchrome-ec-1bdcca7d756468566304989e988ac9ab9709013f.tar.gz
power/host_sleep.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I4a5612e3891ad0a9337276d5cb703d10b2fd97fd Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3727060 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'power')
-rw-r--r--power/host_sleep.c39
1 files changed, 18 insertions, 21 deletions
diff --git a/power/host_sleep.c b/power/host_sleep.c
index e352e677f2..28d3f506a1 100644
--- a/power/host_sleep.c
+++ b/power/host_sleep.c
@@ -12,15 +12,15 @@
#include "util.h"
/* Console output macros */
-#define CPRINTS(format, args...) cprints(CC_CHIPSET, format, ## args)
-#define CPRINTF(format, args...) cprintf(CC_CHIPSET, format, ## args)
+#define CPRINTS(format, args...) cprints(CC_CHIPSET, format, ##args)
+#define CPRINTF(format, args...) cprintf(CC_CHIPSET, format, ##args)
/* Track last reported sleep event */
static enum host_sleep_event host_sleep_state;
-__overridable void power_chipset_handle_host_sleep_event(
- enum host_sleep_event state,
- struct host_sleep_event_context *ctx)
+__overridable void
+power_chipset_handle_host_sleep_event(enum host_sleep_event state,
+ struct host_sleep_event_context *ctx)
{
/* Default weak implementation -- no action required. */
}
@@ -71,8 +71,7 @@ host_command_host_sleep_event(struct host_cmd_handler_args *args)
return EC_RES_SUCCESS;
}
-DECLARE_HOST_COMMAND(EC_CMD_HOST_SLEEP_EVENT,
- host_command_host_sleep_event,
+DECLARE_HOST_COMMAND(EC_CMD_HOST_SLEEP_EVENT, host_command_host_sleep_event,
EC_VER_MASK(0) | EC_VER_MASK(1));
enum host_sleep_event power_get_host_sleep_state(void)
@@ -116,14 +115,13 @@ static enum sleep_hang_type timeout_hang_type;
static void sleep_transition_timeout(void);
DECLARE_DEFERRED(sleep_transition_timeout);
-__overridable void power_board_handle_sleep_hang(
- enum sleep_hang_type hang_type)
+__overridable void power_board_handle_sleep_hang(enum sleep_hang_type hang_type)
{
/* Default empty implementation */
}
-__overridable void power_chipset_handle_sleep_hang(
- enum sleep_hang_type hang_type)
+__overridable void
+power_chipset_handle_sleep_hang(enum sleep_hang_type hang_type)
{
/* Default empty implementation */
}
@@ -231,7 +229,7 @@ static int command_sleep_fail_timeout(int argc, char **argv)
if (val <= 0 || val >= EC_HOST_SLEEP_TIMEOUT_INFINITE) {
ccprintf("Error: timeout range is 1..%d [msec]\n",
- EC_HOST_SLEEP_TIMEOUT_INFINITE - 1);
+ EC_HOST_SLEEP_TIMEOUT_INFINITE - 1);
return EC_ERROR_PARAM1;
}
@@ -242,19 +240,18 @@ static int command_sleep_fail_timeout(int argc, char **argv)
ccprintf("Sleep failure detection timeout is disabled\n");
else
ccprintf("Sleep failure detection timeout is %d [msec]\n",
- host_sleep_timeout_default);
+ host_sleep_timeout_default);
return EC_SUCCESS;
}
DECLARE_CONSOLE_COMMAND(sleeptimeout, command_sleep_fail_timeout,
- "[default | infinite | <msec>]",
- "Display or set host sleep failure detection timeout.\n"
- "Valid arguments are:\n"
- " default\n"
- " infinite - disables the timeout\n"
- " <msec> - custom length in milliseconds\n"
- " <none> - prints the current setting");
-
+ "[default | infinite | <msec>]",
+ "Display or set host sleep failure detection timeout.\n"
+ "Valid arguments are:\n"
+ " default\n"
+ " infinite - disables the timeout\n"
+ " <msec> - custom length in milliseconds\n"
+ " <none> - prints the current setting");
#else /* !CONFIG_POWER_SLEEP_FAILURE_DETECTION */