drivers/spi: stm32: Minor init code refactoring

Minor changes to init code indentation.


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2021-03-01 11:50:52 +01:00 committed by Anas Nashif
commit d8348b0e5e

View file

@ -866,12 +866,10 @@ static void spi_stm32_irq_config_func_##id(const struct device *dev) \
DT_INST_DMAS_CTLR_BY_NAME(id, dir)
#define SPI_DMA_CHANNEL_INIT(index, dir, dir_cap, src_dev, dest_dev) \
.channel = \
DT_INST_DMAS_CELL_BY_NAME(index, dir, channel), \
.dma_dev = DEVICE_DT_GET(DMA_CTLR(index, dir)), \
.channel = DT_INST_DMAS_CELL_BY_NAME(index, dir, channel), \
.dma_cfg = { \
.dma_slot = \
DT_INST_DMAS_CELL_BY_NAME(index, dir, slot), \
.dma_slot = DT_INST_DMAS_CELL_BY_NAME(index, dir, slot),\
.channel_direction = STM32_DMA_CONFIG_DIRECTION( \
DMA_CHANNEL_CONFIG(index, dir)), \
.source_data_size = STM32_DMA_CONFIG_##src_dev##_DATA_SIZE( \