Skip to content

Commit

Permalink
drivers: spi: Rename API no_os_spi_transfer_dma_sync to no_os_spi_tra…
Browse files Browse the repository at this point in the history
…nsfer_dma

Signed-off-by: Naga Himanshu Indraganti <[email protected]>
  • Loading branch information
NagaHimanshu authored and buha committed Feb 26, 2025
1 parent bdd7f1c commit a6f6c0f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion drivers/adc/ad463x/ad463x.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ static int32_t ad463x_read_data_dma(struct ad463x_dev *dev,
if (ret != 0)
goto out;

ret = no_os_spi_transfer_dma_sync(dev->spi_desc, &spi_msg, 1);
ret = no_os_spi_transfer_dma(dev->spi_desc, &spi_msg, 1);
if (ret)
goto out;

Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/ad738x/ad738x.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ static int32_t ad738x_read_data_dma(struct ad738x_dev *dev,
if (ret != 0)
goto out;

ret = no_os_spi_transfer_dma_sync(dev->spi_desc, &spi_msg, 1);
ret = no_os_spi_transfer_dma(dev->spi_desc, &spi_msg, 1);
if (ret)
goto out;

Expand Down
6 changes: 3 additions & 3 deletions drivers/api/no_os_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ int32_t no_os_spi_transfer(struct no_os_spi_desc *desc,
* @param len - Number of messages in the array.
* @return 0 in case of success, negativ error code otherwise.
*/
int32_t no_os_spi_transfer_dma_sync(struct no_os_spi_desc *desc,
struct no_os_spi_msg *msgs,
uint32_t len)
int32_t no_os_spi_transfer_dma(struct no_os_spi_desc *desc,
struct no_os_spi_msg *msgs,
uint32_t len)
{
if (!desc || !desc->platform_ops || !msgs || !len)
return -EINVAL;
Expand Down
6 changes: 3 additions & 3 deletions include/no_os_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ int32_t no_os_spi_transfer(struct no_os_spi_desc *desc,
uint32_t len);

/* Transfer a list of messages using DMA. Wait until all transfers are done */
int32_t no_os_spi_transfer_dma_sync(struct no_os_spi_desc *desc,
struct no_os_spi_msg *msgs,
uint32_t len);
int32_t no_os_spi_transfer_dma(struct no_os_spi_desc *desc,
struct no_os_spi_msg *msgs,
uint32_t len);
/*
* Transfer a list of messages using DMA. Return once the first one started and
* invoke a callback when they are done.
Expand Down

0 comments on commit a6f6c0f

Please sign in to comment.