chip/stm32/dma-stm32f4.c: Format with clang-format
BRANCH=none
TEST=none
@@ -132,8 +132,7 @@ void dma_prepare_tx(const struct dma_option *option, unsigned count,
option->flags);
}
-void dma_start_rx(const struct dma_option *option, unsigned count,
- void *memory)
+void dma_start_rx(const struct dma_option *option, unsigned count, void *memory)
{
stm32_dma_stream_t *stream = dma_get_channel(option->channel);
@@ -176,10 +175,8 @@ void dma_dump(enum dma_channel stream)
CPRINTF("scr=%x, sndtr=%x, spar=%x, sm0ar=%x, sfcr=%x\n",
dma_stream->scr, dma_stream->sndtr, dma_stream->spar,
dma_stream->sm0ar, dma_stream->sfcr);
- CPRINTF("stream %d, isr=%x, ifcr=%x\n",
- stream,
- STM32_DMA_GET_ISR(stream),
- STM32_DMA_GET_IFCR(stream));
+ CPRINTF("stream %d, isr=%x, ifcr=%x\n", stream,
+ STM32_DMA_GET_ISR(stream), STM32_DMA_GET_IFCR(stream));
}
void dma_check(enum dma_channel stream, char *buf)
@@ -307,8 +304,8 @@ void dma_clear_isr(enum dma_channel stream)
{ \
dma_clear_isr(STM32_DMA_IDX(dma, x)); \
if (dma_irq[STM32_DMA_IDX(dma, x)].cb != NULL) \
- (*dma_irq[STM32_DMA_IDX(dma, x)].cb) \
- (dma_irq[STM32_DMA_IDX(dma, x)].cb_data); \
+ (*dma_irq[STM32_DMA_IDX(dma, x)].cb)( \
+ dma_irq[STM32_DMA_IDX(dma, x)].cb_data); \
} \
DECLARE_IRQ(CONCAT4(STM32_IRQ_DMA, dma, _STREAM, x), \
STM32_DMA_FCT(dma, x), 1);
