diff options
author | Shahar Avidar <[email protected]> | 2024-04-05 10:39:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-04-09 17:52:13 +0200 |
commit | cdcf3051f0c05dab75ba46d751adede00f77c54b (patch) | |
tree | 484e5f71a3ecd26db5b1c153cac03c3375b11a33 | |
parent | 6f85a70352174856992efeaaff2ac9fcf6b824a8 (diff) |
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 <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/pi433/pi433_if.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 88889b5d5309..1e467693d546 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -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; |