imx9/edma: Fix function prototypes

Change "DMACH_HANDLE *handle" into "DMACH_HANDLE handle". The DMACH_HANDLE is already
defined as "void *".

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2024-09-04 14:35:50 +03:00 committed by Alan C. Assis
parent 201be401c0
commit 9bee10f05e
2 changed files with 4 additions and 4 deletions

View File

@ -1070,7 +1070,7 @@ void imx9_dmach_free(DMACH_HANDLE handle)
* *
****************************************************************************/ ****************************************************************************/
int imx9_dmach_xfrsetup(DMACH_HANDLE *handle, int imx9_dmach_xfrsetup(DMACH_HANDLE handle,
const struct imx9_edma_xfrconfig_s *config) const struct imx9_edma_xfrconfig_s *config)
{ {
struct imx9_dmach_s *dmach = (struct imx9_dmach_s *)handle; struct imx9_dmach_s *dmach = (struct imx9_dmach_s *)handle;
@ -1336,7 +1336,7 @@ void imx9_dmach_stop(DMACH_HANDLE handle)
* *
****************************************************************************/ ****************************************************************************/
unsigned int imx9_dmach_getcount(DMACH_HANDLE *handle) unsigned int imx9_dmach_getcount(DMACH_HANDLE handle)
{ {
struct imx9_dmach_s *dmach = (struct imx9_dmach_s *)handle; struct imx9_dmach_s *dmach = (struct imx9_dmach_s *)handle;
uintptr_t base = IMX9_EDMA_TCD(dmach->base, dmach->chan); uintptr_t base = IMX9_EDMA_TCD(dmach->base, dmach->chan);

View File

@ -337,7 +337,7 @@ void imx9_dmach_free(DMACH_HANDLE handle);
* *
****************************************************************************/ ****************************************************************************/
int imx9_dmach_xfrsetup(DMACH_HANDLE *handle, int imx9_dmach_xfrsetup(DMACH_HANDLE handle,
const struct imx9_edma_xfrconfig_s *config); const struct imx9_edma_xfrconfig_s *config);
/**************************************************************************** /****************************************************************************
@ -429,7 +429,7 @@ void imx9_dmach_stop(DMACH_HANDLE handle);
* *
****************************************************************************/ ****************************************************************************/
unsigned int imx9_dmach_getcount(DMACH_HANDLE *handle); unsigned int imx9_dmach_getcount(DMACH_HANDLE handle);
/**************************************************************************** /****************************************************************************
* Name: imx9_dmach_idle * Name: imx9_dmach_idle