From 75203c6641cfe47dfb817b095430021b0981ff47 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 10 Dec 2024 12:06:14 +0000 Subject: [PATCH] misc: rp1-pio: Minor cosmetic tweaks No functional change. Signed-off-by: Phil Elwell --- drivers/misc/rp1-pio.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) --- a/drivers/misc/rp1-pio.c +++ b/drivers/misc/rp1-pio.c @@ -683,7 +683,7 @@ err_dma_free: } 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; @@ -757,7 +757,7 @@ static int rp1_pio_sm_tx_user(struct rp1 } 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; @@ -809,8 +809,7 @@ static int rp1_pio_sm_rx_user(struct rp1 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;