spi: struct spi_device constification
authorMark Brown <broonie@kernel.org>
Mon, 13 Mar 2023 18:19:31 +0000 (18:19 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 13 Mar 2023 18:19:31 +0000 (18:19 +0000)
commit4d8ff713e684ea58111a33ea7df2e7ddc30683cc
tree1c712cbe67882f338274e77dbf92246bda96fb9f
parent0762875674b969e35371ec5fe4b594d7a92ab364
parent7859ad5a401b73bf2ddfa274950b5722492c3150
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.
drivers/spi/spi-sh-msiof.c