zephyr/subsys/ap_pwrseq/include/power_signals.h: Format with clang-format
BRANCH=none
TEST=none
/**
* @brief Generate the enum for this power signal.
*/
-#define PWR_SIGNAL_ENUM(id) \
- DT_STRING_UPPER_TOKEN(id, enum_name)
+#define PWR_SIGNAL_ENUM(id) DT_STRING_UPPER_TOKEN(id, enum_name)
-#define PWR_SIGNAL_ENUM_COMMA(id) \
- PWR_SIGNAL_ENUM(id),
+#define PWR_SIGNAL_ENUM_COMMA(id) PWR_SIGNAL_ENUM(id),
/**
* @brief Enum of all power signals.
*
*/
enum power_signal {
DT_FOREACH_STATUS_OKAY(intel_ap_pwrseq_gpio, PWR_SIGNAL_ENUM_COMMA)
-DT_FOREACH_STATUS_OKAY(intel_ap_pwrseq_vw, PWR_SIGNAL_ENUM_COMMA)
-DT_FOREACH_STATUS_OKAY(intel_ap_pwrseq_external, PWR_SIGNAL_ENUM_COMMA)
-DT_FOREACH_STATUS_OKAY(intel_ap_pwrseq_adc, PWR_SIGNAL_ENUM_COMMA)
+ DT_FOREACH_STATUS_OKAY(intel_ap_pwrseq_vw,
+ PWR_SIGNAL_ENUM_COMMA)
+ DT_FOREACH_STATUS_OKAY(intel_ap_pwrseq_external,
+ PWR_SIGNAL_ENUM_COMMA)
+ DT_FOREACH_STATUS_OKAY(intel_ap_pwrseq_adc,
+ PWR_SIGNAL_ENUM_COMMA)
POWER_SIGNAL_COUNT,
};
@@ -301,8 +302,7 @@ static inline bool power_signals_off(power_signal_mask_t want)
* @return negative If the signals did not match before the timeout.
*/
int power_wait_mask_signals_timeout(power_signal_mask_t want,
- power_signal_mask_t mask,
- int timeout);
+ power_signal_mask_t mask, int timeout);
/**
* @brief Wait until the selected power signals match, with timeout
