openwrt/target/linux/bcm27xx/patches-6.6/950-1475-misc-rp1-pio-Minor-cosmetic-tweaks.patch
Álvaro Fernández Rojas 3a5584e0df bcm27xx: pull 6.6 patches from RPi repo
Adds latest 6.6 patches from the Raspberry Pi repository.

These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.6.y/
With the following command:
git format-patch -N v6.6.67..HEAD
(HEAD -> 811ff707533bcd67cdcd368bbd46223082009b12)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(cherry picked from commit 692205305d)
2024-12-28 14:11:52 +01:00

43 lines
1.4 KiB
Diff

From 75203c6641cfe47dfb817b095430021b0981ff47 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
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 <phil@raspberrypi.com>
---
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;