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:
parent
375db6e080
commit
d8348b0e5e
1 changed files with 3 additions and 5 deletions
|
@ -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( \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue