Skip to content

Commit 798a1db

Browse files
committed
drivers: ipm: stm32_hsem: clean indentation in instance init macros
Clean indentation in macros used to define instances in STM32 HSEM hardware semaphore drivers. Signed-off-by: Etienne Carriere <[email protected]>
1 parent 5e58f82 commit 798a1db

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

drivers/ipm/ipm_stm32_hsem.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,16 @@ static const struct stm32_hsem_mailbox_config stm32_hsem_mailbox_0_config = {
207207
* a virtual mailbox device. So there will have only one instance.
208208
*/
209209
#define IPM_STM32_HSEM_INIT(inst) \
210-
BUILD_ASSERT((inst) == 0, \
211-
"multiple instances not supported"); \
212-
DEVICE_DT_INST_DEFINE(0, \
213-
&stm32_hsem_mailbox_init, \
214-
NULL, \
215-
&stm32_hsem_mailbox_0_data, \
216-
&stm32_hsem_mailbox_0_config, \
217-
POST_KERNEL, \
218-
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
219-
&stm32_hsem_mailbox_ipm_dirver_api); \
210+
BUILD_ASSERT((inst) == 0, \
211+
"multiple instances not supported"); \
212+
\
213+
DEVICE_DT_INST_DEFINE(0, \
214+
&stm32_hsem_mailbox_init, \
215+
NULL, \
216+
&stm32_hsem_mailbox_0_data, \
217+
&stm32_hsem_mailbox_0_config, \
218+
POST_KERNEL, \
219+
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
220+
&stm32_hsem_mailbox_ipm_dirver_api);
220221

221222
DT_INST_FOREACH_STATUS_OKAY(IPM_STM32_HSEM_INIT)

0 commit comments

Comments
 (0)