Skip to content

Commit

Permalink
misc: rp1-pio: Minor cosmetic tweaks
Browse files Browse the repository at this point in the history
No functional change.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell authored and popcornmix committed Jan 2, 2025
1 parent 19368e9 commit 07e5591
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/misc/rp1-pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ static int rp1_pio_sm_config_xfer(struct rp1_pio_client *client, void *param)
}

static int rp1_pio_sm_tx_user(struct rp1_pio_device *pio, struct dma_info *dma,
const void __user *userbuf, size_t bytes)
const void __user *userbuf, size_t bytes)
{
struct platform_device *pdev = pio->pdev;
struct dma_async_tx_descriptor *desc;
Expand Down Expand Up @@ -757,7 +757,7 @@ static int rp1_pio_sm_tx_user(struct rp1_pio_device *pio, struct dma_info *dma,
}

static int rp1_pio_sm_rx_user(struct rp1_pio_device *pio, struct dma_info *dma,
void __user *userbuf, size_t bytes)
void __user *userbuf, size_t bytes)
{
struct platform_device *pdev = pio->pdev;
struct dma_async_tx_descriptor *desc;
Expand Down Expand Up @@ -809,8 +809,7 @@ static int rp1_pio_sm_rx_user(struct rp1_pio_device *pio, struct dma_info *dma,
desc->callback = rp1_pio_sm_dma_callback;
desc->callback_param = dma;

// Submit the buffer - the callback will kick the semaphore

/* Submit the buffer - the callback will kick the semaphore */
ret = dmaengine_submit(desc);
if (ret < 0)
break;
Expand Down

0 comments on commit 07e5591

Please sign in to comment.