Commit cdcf3051 authored by Shahar Avidar's avatar Shahar Avidar Committed by Greg Kroah-Hartman
Browse files

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: default avatarShahar Avidar <ikobh7@gmail.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240405074000.3481217-4-ikobh7@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6f85a703
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -408,9 +408,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;