include/power.h: Format with clang-format
BRANCH=none
TEST=none
@@ -161,7 +161,6 @@ int power_wait_signals_timeout(uint32_t want, int timeout);
*/
int power_wait_mask_signals_timeout(uint32_t want, uint32_t mask, int timeout);
-
/**
* Set the low-level power chipset state.
*
@@ -177,7 +176,8 @@ void power_set_state(enum power_state new_state);
#ifdef CONFIG_AP_POWER_CONTROL
enum power_state power_get_state(void);
#else
-static inline enum power_state power_get_state(void) {
+static inline enum power_state power_get_state(void)
+{
return POWER_G3;
}
#endif
@@ -208,7 +208,9 @@ enum power_state power_handle_state(enum power_state state);
#ifdef CONFIG_AP_POWER_CONTROL
void power_signal_interrupt(enum gpio_signal signal);
#else
-static inline void power_signal_interrupt(enum gpio_signal signal) { }
+static inline void power_signal_interrupt(enum gpio_signal signal)
+{
+}
#endif /* !CONFIG_AP_POWER_CONTROL */
/**
@@ -264,8 +266,8 @@ struct host_sleep_event_context {
* @param state Current host sleep state updated by the host.
* @param ctx Possible sleep parameters and return values, depending on state.
*/
-__override_proto void power_chipset_handle_host_sleep_event(
- enum host_sleep_event state,
+__override_proto void
+power_chipset_handle_host_sleep_event(enum host_sleep_event state,
struct host_sleep_event_context *ctx);
/**
@@ -274,8 +276,8 @@ __override_proto void power_chipset_handle_host_sleep_event(
*
* @param state Current host sleep state updated by the host.
*/
-__override_proto void power_board_handle_host_sleep_event(
- enum host_sleep_event state);
+__override_proto void
+power_board_handle_host_sleep_event(enum host_sleep_event state);
/*
* This is the default state of host sleep event. Calls to
@@ -337,8 +339,8 @@ enum sleep_hang_type {
*
* @param hang_type Host sleep hang type detected.
*/
-__override_proto void power_chipset_handle_sleep_hang(
- enum sleep_hang_type hang_type);
+__override_proto void
+power_chipset_handle_sleep_hang(enum sleep_hang_type hang_type);
/**
* Provide callback to allow board to take action on host sleep hang
@@ -349,8 +351,8 @@ __override_proto void power_chipset_handle_sleep_hang(
*
* @param hang_type Host sleep hang type detected.
*/
-__override_proto void power_board_handle_sleep_hang(
- enum sleep_hang_type hang_type);
+__override_proto void
+power_board_handle_sleep_hang(enum sleep_hang_type hang_type);
/**
* Start the suspend process.
@@ -422,7 +424,6 @@ void power_5v_enable(task_id_t tid, int enable);
void test_power_common_state(void);
#endif
-
#ifdef CONFIG_POWERSEQ_FAKE_CONTROL
/**
* Enable a fake S0 state
