From 2b626fa85a775a8d8dfbf8710bdb51c78f1e4b9e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 29 Jun 2014 11:24:57 -0600 Subject: [PATCH] SAMA5D4 XDMA: Fix some typos --- arch/arm/src/sama5/sam_xdmac.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/src/sama5/sam_xdmac.c b/arch/arm/src/sama5/sam_xdmac.c index 692617221c..92f11b1583 100644 --- a/arch/arm/src/sama5/sam_xdmac.c +++ b/arch/arm/src/sama5/sam_xdmac.c @@ -1707,7 +1707,7 @@ static inline int sam_multiple(struct sam_xdmach_s *xdmach) */ if ((xdmach->cc & XDMACH_CC_TYPE) == 0 || - (xdmach->cc & XDMACH_CC_TYPE) != 0) + (xdmach->cc & XDMACH_CC_DSYNC) != 0) { regval |= XDMACH_CNDC_NDSUP; } @@ -1989,7 +1989,7 @@ void weak_function up_dmainitialize(void) } /**************************************************************************** - * Name: sam_xdmachannel + * Name: sam_dmachannel * * Allocate a DMA channel. This function sets aside a DMA channel then * gives the caller exclusive access to the DMA channel. @@ -2005,7 +2005,7 @@ void weak_function up_dmainitialize(void) * ****************************************************************************/ -DMA_HANDLE sam_xdmachannel(uint8_t dmacno, uint32_t chflags) +DMA_HANDLE sam_dmachannel(uint8_t dmacno, uint32_t chflags) { struct sam_xdmac_s *xdmac; struct sam_xdmach_s *xdmach; @@ -2086,14 +2086,14 @@ DMA_HANDLE sam_xdmachannel(uint8_t dmacno, uint32_t chflags) } /************************************************************************************ - * Name: sam_xdmaconfig + * Name: sam_dmaconfig * * Description: * There are two channel usage models: (1) The channel is allocated and configured * in one step. This is the typical case where a DMA channel performs a constant * role. The alternative is (2) where the DMA channel is reconfigured on the fly. - * In this case, the chflags provided to sam_xdmachannel are not used and - * sam_xdmaconfig() is called before each DMA to configure the DMA channel + * In this case, the chflags provided to sam_dmachannel are not used and + * sam_dmaconfig() is called before each DMA to configure the DMA channel * appropriately. * * Returned Value: @@ -2101,7 +2101,7 @@ DMA_HANDLE sam_xdmachannel(uint8_t dmacno, uint32_t chflags) * ************************************************************************************/ -void sam_xdmaconfig(DMA_HANDLE handle, uint32_t chflags) +void sam_dmaconfig(DMA_HANDLE handle, uint32_t chflags) { struct sam_xdmach_s *xdmach = (struct sam_xdmach_s *)handle; @@ -2126,7 +2126,7 @@ void sam_xdmaconfig(DMA_HANDLE handle, uint32_t chflags) * * Description: * Release a DMA channel. NOTE: The 'handle' used in this argument must - * NEVER be used again until sam_xdmachannel() is called again to re-gain + * NEVER be used again until sam_dmachannel() is called again to re-gain * a valid handle. * * Returned Value: @@ -2390,7 +2390,7 @@ void sam_dmastop(DMA_HANDLE handle) * Sample DMA register contents * * Assumptions: - * - DMA handle allocated by sam_xdmachannel() + * - DMA handle allocated by sam_dmachannel() * ****************************************************************************/ @@ -2444,7 +2444,7 @@ void sam_dmasample(DMA_HANDLE handle, struct sam_dmaregs_s *regs) * Dump previously sampled DMA register contents * * Assumptions: - * - DMA handle allocated by sam_xdmachannel() + * - DMA handle allocated by sam_dmachannel() * ****************************************************************************/