[PATCH 3/5] staging: pi433: Replace pi433_receive param void type to struct pi433_device.

From: Shahar Avidar
Date: Thu Mar 28 2024 - 08:13:26 EST


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@xxxxxxxxx>
---
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