Skip to content

Commit

Permalink
spi: cadence-quadspi: remove unnecessary (void *) casts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Abbott authored and Mark Brown committed May 10, 2022
1 parent 76159e2 commit 0d86882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/spi/spi-cadence-quadspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */ }
};
Expand Down

0 comments on commit 0d86882

Please sign in to comment.