s32k1xx:Apply Style Changes from code review

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
David Sidrane 2022-12-14 05:11:30 -05:00 committed by Xiang Xiao
parent 592e946bdf
commit 1760057e29
2 changed files with 23 additions and 23 deletions

View File

@ -786,7 +786,7 @@ static int s32k1xx_dma_setup(struct uart_dev_s *dev)
/* Configure for circular DMA reception into the RX FIFO */
config.saddr = priv->uartbase + S32K1XX_LPUART_DATA_OFFSET;
config.daddr = (uint32_t) priv->rxfifo;
config.daddr = (uint32_t)priv->rxfifo;
config.soff = 0;
config.doff = 1;
config.iter = RXDMA_BUFFER_SIZE;
@ -1804,7 +1804,7 @@ static void s32k1xx_dma_send(struct uart_dev_s *dev)
config.ssize = EDMA_8BIT;
config.dsize = EDMA_8BIT;
config.nbytes = sizeof(dev->dmatx.buffer[0]);
config.saddr = (uint32_t) dev->dmatx.buffer;
config.saddr = (uint32_t)dev->dmatx.buffer;
config.daddr = priv->uartbase + S32K1XX_LPUART_DATA_OFFSET;
config.soff = sizeof(dev->dmatx.buffer[0]);
config.doff = 0;
@ -1821,7 +1821,7 @@ static void s32k1xx_dma_send(struct uart_dev_s *dev)
if (dev->dmatx.nbuffer)
{
config.iter = priv->dev.dmatx.nlength;
config.saddr = (uint32_t) priv->dev.dmatx.nbuffer;
config.saddr = (uint32_t)priv->dev.dmatx.nbuffer;
s32k1xx_dmach_xfrsetup(priv->txdma, &config);
}

View File

@ -115,11 +115,11 @@
/* Verify that DMA has been enabled and the DMA channel has been defined.
*/
# if defined(SERIAL_HAVE_TXDMA) || defined(SERIAL_HAVE_RXDMA)
#if defined(SERIAL_HAVE_TXDMA) || defined(SERIAL_HAVE_RXDMA)
# ifndef CONFIG_S32K1XX_EDMA
# error S32K1XX LPUART receive or transmit DMA requires CONFIG_S32K1XX_EDMA
# endif
# endif
#endif
#if defined(SERIAL_HAVE_RXDMA)
/* Currently RS-485 support cannot be enabled when RXDMA is in use due to