mirror of
https://github.com/apache/nuttx.git
synced 2026-09-30 19:06:22 +00:00
arch/arm/src/imx9/imx9_edma.c: Fix nxstyle issues
Fix alignment issues Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
This commit is contained in:
parent
44e35044ea
commit
d5d93f6207
2 changed files with 9 additions and 7 deletions
|
|
@ -528,11 +528,11 @@ static void imx9_dmaterminate(struct imx9_dmach_s *dmach, int result)
|
|||
* if not continue to free tcds in chain
|
||||
*/
|
||||
|
||||
next = dmach->flags & EDMA_CONFIG_LOOPDEST ?
|
||||
NULL : (struct imx9_edmatcd_s *)
|
||||
imx9_edma_dmaaddr_to_addr(tcd->dlastsga);
|
||||
next = dmach->flags & EDMA_CONFIG_LOOPDEST ? NULL :
|
||||
(struct imx9_edmatcd_s *)imx9_edma_dmaaddr_to_addr(
|
||||
tcd->dlastsga);
|
||||
|
||||
imx9_tcd_free_nolock(tcd);
|
||||
imx9_tcd_free_nolock(tcd);
|
||||
}
|
||||
|
||||
dmach->head = NULL;
|
||||
|
|
@ -1526,6 +1526,7 @@ unsigned int imx9_dmach_getcount(DMACH_HANDLE handle)
|
|||
unsigned int imx9_dmach_idle(DMACH_HANDLE handle)
|
||||
{
|
||||
struct imx9_dmach_s *dmach = (struct imx9_dmach_s *)handle;
|
||||
|
||||
return dmach->state == IMX9_DMA_IDLE ? 0 : -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -480,10 +480,10 @@ static void imx9_dmaterminate(struct imx9_dmach_s *dmach, int result)
|
|||
* if not continue to free tcds in chain
|
||||
*/
|
||||
|
||||
next = dmach->flags & EDMA_CONFIG_LOOPDEST ?
|
||||
NULL : (struct imx9_edmatcd_s *)((uintptr_t)tcd->dlastsga);
|
||||
next = dmach->flags & EDMA_CONFIG_LOOPDEST ? NULL :
|
||||
(struct imx9_edmatcd_s *)((uintptr_t)tcd->dlastsga);
|
||||
|
||||
imx9_tcd_free_nolock(tcd);
|
||||
imx9_tcd_free_nolock(tcd);
|
||||
}
|
||||
|
||||
dmach->head = NULL;
|
||||
|
|
@ -1403,6 +1403,7 @@ unsigned int imx9_dmach_getcount(DMACH_HANDLE handle)
|
|||
unsigned int imx9_dmach_idle(DMACH_HANDLE handle)
|
||||
{
|
||||
struct imx9_dmach_s *dmach = (struct imx9_dmach_s *)handle;
|
||||
|
||||
return dmach->state == IMX9_DMA_IDLE ? 0 : -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue