Skip to content

Commit 0d86882

Browse files
ian-abbottbroonie
authored andcommitted
spi: cadence-quadspi: remove unnecessary (void *) casts
Remove a couple of unnecessary casts to `(void *)` when initializing the `.data` members in the device ID table. Signed-off-by: Ian Abbott <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 76159e2 commit 0d86882

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi-cadence-quadspi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,11 +1811,11 @@ static const struct of_device_id cqspi_dt_ids[] = {
18111811
},
18121812
{
18131813
.compatible = "xlnx,versal-ospi-1.0",
1814-
.data = (void *)&versal_ospi,
1814+
.data = &versal_ospi,
18151815
},
18161816
{
18171817
.compatible = "intel,socfpga-qspi",
1818-
.data = (void *)&socfpga_qspi,
1818+
.data = &socfpga_qspi,
18191819
},
18201820
{ /* end of table */ }
18211821
};

0 commit comments

Comments
 (0)