drivers/serial: stm32: Fix indentation in STM32_UART_INIT

Looks better this way

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-06-05 09:48:29 +02:00 committed by Kumar Gala
commit ccd6b72bc0

View file

@ -762,21 +762,21 @@ STM32_UART_IRQ_HANDLER_DECL(index); \
\ \
static const struct uart_stm32_config uart_stm32_cfg_##index = { \ static const struct uart_stm32_config uart_stm32_cfg_##index = { \
.uconf = { \ .uconf = { \
.base = (uint8_t *)DT_INST_REG_ADDR(index),\ .base = (uint8_t *)DT_INST_REG_ADDR(index), \
STM32_UART_IRQ_HANDLER_FUNC(index) \ STM32_UART_IRQ_HANDLER_FUNC(index) \
}, \ }, \
.pclken = { .bus = DT_INST_CLOCKS_CELL(index, bus), \ .pclken = { .bus = DT_INST_CLOCKS_CELL(index, bus), \
.enr = DT_INST_CLOCKS_CELL(index, bits) \ .enr = DT_INST_CLOCKS_CELL(index, bits) \
}, \ }, \
.hw_flow_control = DT_INST_PROP(index, hw_flow_control),\ .hw_flow_control = DT_INST_PROP(index, hw_flow_control), \
.parity = DT_INST_PROP(index, parity)\ .parity = DT_INST_PROP(index, parity), \
}; \ }; \
\ \
static struct uart_stm32_data uart_stm32_data_##index = { \ static struct uart_stm32_data uart_stm32_data_##index = { \
.baud_rate = DT_INST_PROP(index, current_speed) \ .baud_rate = DT_INST_PROP(index, current_speed), \
}; \ }; \
\ \
DEVICE_AND_API_INIT(uart_stm32_##index, DT_INST_LABEL(index),\ DEVICE_AND_API_INIT(uart_stm32_##index, DT_INST_LABEL(index), \
&uart_stm32_init, \ &uart_stm32_init, \
&uart_stm32_data_##index, &uart_stm32_cfg_##index, \ &uart_stm32_data_##index, &uart_stm32_cfg_##index, \
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \ PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \