power/rk3288.c: Format with clang-format
BRANCH=none
TEST=none
@@ -101,11 +101,9 @@ enum power_request_t {
static enum power_request_t power_request;
-
/* Forward declaration */
static void chipset_turn_off_power_rails(void);
-
/**
* Set the PMIC WARM RESET signal.
*
@@ -117,7 +115,6 @@ static void set_pmic_warm_reset(int asserted)
gpio_set_level(GPIO_PMIC_WARM_RESET_L, asserted ? 0 : 1);
}
-
/**
* Set the PMIC PWRON signal.
*
@@ -294,13 +291,11 @@ static int check_for_power_on_event(void)
/* check if system is already ON */
if (power_get_signals() & IN_POWER_GOOD) {
if (ap_off_flag) {
- CPRINTS(
- "system is on, but "
+ CPRINTS("system is on, but "
"EC_RESET_FLAG_AP_OFF is on");
return 0;
} else {
- CPRINTS(
- "system is on, thus clear "
+ CPRINTS("system is on, thus clear "
"auto_power_on");
/* no need to arrange another power on */
auto_power_on = 0;
@@ -443,10 +438,11 @@ enum power_state power_handle_state(enum power_state state)
set_pmic_pwron(0);
/* setup misc gpio for S3/S0 functionality */
- gpio_set_flags(GPIO_SUSPEND_L, GPIO_INPUT
- | GPIO_INT_BOTH | GPIO_PULL_DOWN);
- gpio_set_flags(GPIO_EC_INT_L, GPIO_OUTPUT
- | GPIO_OUT_HIGH);
+ gpio_set_flags(GPIO_SUSPEND_L,
+ GPIO_INPUT | GPIO_INT_BOTH |
+ GPIO_PULL_DOWN);
+ gpio_set_flags(GPIO_EC_INT_L,
+ GPIO_OUTPUT | GPIO_OUT_HIGH);
/* Call hooks now that AP is running */
hook_notify(HOOK_CHIPSET_STARTUP);
@@ -577,6 +573,4 @@ static int command_power(int argc, char **argv)
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(power, command_power,
- "on/off",
- "Turn AP power on/off");
+DECLARE_CONSOLE_COMMAND(power, command_power, "on/off", "Turn AP power on/off");
