drivers: half_bridge: stm32: fix formatting for clang-format 15

Different clang-format versions disagree on the formatting of braced
initializer lists in macros. Disable formatting for the affected macro,
as the version used in CI would put multiple designated initializers
in a single line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Martin Jäger
2026-10-20 22:35:40 +02:00
co-authored by Claude Opus 5.5
parent 0164841139
commit f8226e0687
@@ -44,6 +44,11 @@ struct half_bridge_stm32_tim_config
static const struct stm32_pclken half_bridge_stm32_tim_pclken_##n[] = \
STM32_DT_CLOCKS(DT_INST_PARENT(n));
/*
* Formatting disabled, as different clang-format versions disagree on braced lists in macros.
*/
/* clang-format off */
/**
* Initializer for struct half_bridge_stm32_tim_config of instance n
*/
@@ -56,6 +61,8 @@ struct half_bridge_stm32_tim_config
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(n), \
}
/* clang-format on */
/** LL channel definitions for channels 1 to 4 */
extern const uint32_t half_bridge_stm32_tim_ll_channels[4];