[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240405074000.3481217-4-ikobh7@gmail.com>
Date: Fri, 5 Apr 2024 10:39:56 +0300
From: Shahar Avidar <ikobh7@...il.com>
To: gregkh@...uxfoundation.org,
hverkuil-cisco@...all.nl,
andriy.shevchenko@...ux.intel.com,
robh@...nel.org,
felixkimbu1@...il.com
Cc: linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH v3 3/7] staging: pi433: Replace pi433_receive param void type to struct pi433_device.
pi433_receive is only called once.
It immediately assigns the data param to a struct pi433_device.
Rename param name to pi433.
Signed-off-by: Shahar Avidar <ikobh7@...il.com>
---
drivers/staging/pi433/pi433_if.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index 7efe6b8501e3..208c0c6d3649 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -409,9 +409,8 @@ static int pi433_start_rx(struct pi433_device *pi433)
/*-------------------------------------------------------------------------*/
-static int pi433_receive(void *data)
+static int pi433_receive(struct pi433_device *pi433)
{
- struct pi433_device *pi433 = data;
struct spi_device *spi = pi433->spi;
int bytes_to_read, bytes_total;
int retval;
--
2.34.1
Powered by blists - more mailing lists