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:
Jukka Laitinen 2026-09-14 09:36:38 +03:00 • committed by Alan C. Assis
parent 44e35044ea
commit d5d93f6207
2 changed files with 9 additions and 7 deletions

View file

@ -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;
}

View file

@ -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;
}