power/mt8183.c: Format with clang-format
BRANCH=none
TEST=none
@@ -96,12 +96,10 @@ static const struct power_seq_op s5s3_power_seq[] = {
};
/* The power sequence for POWER_S3S0 */
-static const struct power_seq_op s3s0_power_seq[] = {
-};
+static const struct power_seq_op s3s0_power_seq[] = {};
/* The power sequence for POWER_S0S3 */
-static const struct power_seq_op s0s3_power_seq[] = {
-};
+static const struct power_seq_op s0s3_power_seq[] = {};
/* The power sequence for POWER_S3S5 */
static const struct power_seq_op s3s5_power_seq[] = {
@@ -261,8 +259,7 @@ static void power_seq_run(const struct power_seq_op *power_seq_ops,
int i;
for (i = 0; i < op_count; i++) {
- gpio_set_level(power_seq_ops[i].signal,
- power_seq_ops[i].level);
+ gpio_set_level(power_seq_ops[i].signal, power_seq_ops[i].level);
if (!power_seq_ops[i].delay)
continue;
msleep(power_seq_ops[i].delay);
@@ -351,8 +348,7 @@ enum power_state power_handle_state(enum power_state state)
break;
case POWER_S0:
- if (!power_has_signals(IN_PGOOD_S0) ||
- forcing_shutdown ||
+ if (!power_has_signals(IN_PGOOD_S0) || forcing_shutdown ||
power_get_signals() & IN_SUSPEND_ASSERTED)
return POWER_S0S3;
@@ -581,15 +577,14 @@ enum power_state power_handle_state(enum power_state state)
}
#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,
+__override void
+power_chipset_handle_host_sleep_event(enum host_sleep_event state,
struct host_sleep_event_context *ctx)
{
CPRINTS("Handle sleep: %d", state);
@@ -611,7 +606,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 */
