Skip to content

Commit

Permalink
imx9/edma: Fix function prototypes
Browse files Browse the repository at this point in the history
Change "DMACH_HANDLE *handle" into "DMACH_HANDLE handle". The DMACH_HANDLE is already
defined as "void *".

Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine authored and acassis committed Sep 12, 2024
1 parent 201be40 commit 9bee10f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/arm64/src/imx9/imx9_edma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
struct imx9_dmach_s *dmach = (struct imx9_dmach_s *)handle;
Expand Down Expand Up @@ -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;
uintptr_t base = IMX9_EDMA_TCD(dmach->base, dmach->chan);
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/src/imx9/imx9_edma.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/****************************************************************************
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9bee10f

Please sign in to comment.