projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76159e2
)
spi: cadence-quadspi: remove unnecessary (void *) casts
author
Ian Abbott
<abbotti@mev.co.uk>
Tue, 10 May 2022 11:51:41 +0000
(12:51 +0100)
committer
Mark Brown
<broonie@kernel.org>
Tue, 10 May 2022 13:01:59 +0000
(14:01 +0100)
Remove a couple of unnecessary casts to `(void *)` when initializing the
`.data` members in the device ID table.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link:
https://lore.kernel.org/r/20220510115141.212779-3-abbotti@mev.co.uk
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-cadence-quadspi.c
b/drivers/spi/spi-cadence-quadspi.c
index
242ad8a
..
edd6491
100644
(file)
--- a/
drivers/spi/spi-cadence-quadspi.c
+++ b/
drivers/spi/spi-cadence-quadspi.c
@@
-1811,11
+1811,11
@@
static const struct of_device_id cqspi_dt_ids[] = {
},
{
.compatible = "xlnx,versal-ospi-1.0",
- .data =
(void *)
&versal_ospi,
+ .data = &versal_ospi,
},
{
.compatible = "intel,socfpga-qspi",
- .data =
(void *)
&socfpga_qspi,
+ .data = &socfpga_qspi,
},
{ /* end of table */ }
};