diff options
author | Mark Brown <broonie@kernel.org> | 2023-03-13 18:19:31 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-13 18:19:31 +0000 |
commit | 4d8ff713e684ea58111a33ea7df2e7ddc30683cc (patch) | |
tree | 1c712cbe67882f338274e77dbf92246bda96fb9f /drivers/spi/spi-fsl-dspi.c | |
parent | 0762875674b969e35371ec5fe4b594d7a92ab364 (diff) | |
parent | 7859ad5a401b73bf2ddfa274950b5722492c3150 (diff) | |
download | linux-4d8ff713e684ea58111a33ea7df2e7ddc30683cc.tar.gz linux-4d8ff713e684ea58111a33ea7df2e7ddc30683cc.tar.bz2 linux-4d8ff713e684ea58111a33ea7df2e7ddc30683cc.zip |
spi: struct spi_device constification
Merge series from Geert Uytterhoeven <geert+renesas@glider.be>:
After noticing new cases of casting away constness, I went over all
spi_get_*() functions and their callers, and made the following changes:
1. Make all pointer parameters const where possible,
2. Remove unneeded casts, some not even related to constness.
Diffstat (limited to 'drivers/spi/spi-fsl-dspi.c')
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index ee42285b5c52..4339485d202c 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -1068,7 +1068,7 @@ static int dspi_setup(struct spi_device *spi) static void dspi_cleanup(struct spi_device *spi) { - struct chip_data *chip = spi_get_ctldata((struct spi_device *)spi); + struct chip_data *chip = spi_get_ctldata(spi); dev_dbg(&spi->dev, "spi_device %u.%u cleanup\n", spi->controller->bus_num, spi_get_chipselect(spi, 0)); |