zephyr/shim/src/tcpc.c: Format with clang-format
BRANCH=none
TEST=none
DT_HAS_COMPAT_STATUS_OKAY(IT8XXX2_TCPC_COMPAT) || \
DT_HAS_COMPAT_STATUS_OKAY(PS8XXX_COMPAT) || \
DT_HAS_COMPAT_STATUS_OKAY(NCT38XX_TCPC_COMPAT) || \
- DT_HAS_COMPAT_STATUS_OKAY(TCPCI_COMPAT) \
+ DT_HAS_COMPAT_STATUS_OKAY(TCPCI_COMPAT)
#define TCPC_CONFIG(id, fn) [USBC_PORT(id)] = fn(id)
-#define MAYBE_CONST COND_CODE_1(CONFIG_PLATFORM_EC_USB_PD_TCPC_RUNTIME_CONFIG, \
- (), (const))
+#define MAYBE_CONST \
+ COND_CODE_1(CONFIG_PLATFORM_EC_USB_PD_TCPC_RUNTIME_CONFIG, (), (const))
MAYBE_CONST struct tcpc_config_t tcpc_config[] = {
DT_FOREACH_STATUS_OKAY_VARGS(CCGXXF_TCPC_COMPAT, TCPC_CONFIG,
TCPC_CONFIG_CCGXXF)
DT_FOREACH_STATUS_OKAY_VARGS(FUSB302_TCPC_COMPAT, TCPC_CONFIG,
TCPC_CONFIG_FUSB302)
- DT_FOREACH_STATUS_OKAY_VARGS(IT8XXX2_TCPC_COMPAT, TCPC_CONFIG,
+ DT_FOREACH_STATUS_OKAY_VARGS(IT8XXX2_TCPC_COMPAT,
+ TCPC_CONFIG,
TCPC_CONFIG_IT8XXX2)
- DT_FOREACH_STATUS_OKAY_VARGS(PS8XXX_COMPAT, TCPC_CONFIG,
+ DT_FOREACH_STATUS_OKAY_VARGS(PS8XXX_COMPAT,
+ TCPC_CONFIG,
TCPC_CONFIG_PS8XXX)
- DT_FOREACH_STATUS_OKAY_VARGS(NCT38XX_TCPC_COMPAT, TCPC_CONFIG,
+ DT_FOREACH_STATUS_OKAY_VARGS(
+ NCT38XX_TCPC_COMPAT,
+ TCPC_CONFIG,
TCPC_CONFIG_NCT38XX)
- DT_FOREACH_STATUS_OKAY_VARGS(TCPCI_COMPAT, TCPC_CONFIG,
+ DT_FOREACH_STATUS_OKAY_VARGS(
+ TCPCI_COMPAT,
+ TCPC_CONFIG,
TCPC_CONFIG_TCPCI)
};
