diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-03-13 11:58:35 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-13 14:09:04 +0000 |
commit | cc4b15670340315fb0b25d886c06bffb5f128f02 (patch) | |
tree | dc274cceacd409662aff9e25a07ef90b6ee0a66e /include/linux/spi | |
parent | 9c8400e3795decefe6390646ece820a310b37b79 (diff) | |
download | linux-stable-cc4b15670340315fb0b25d886c06bffb5f128f02.tar.gz linux-stable-cc4b15670340315fb0b25d886c06bffb5f128f02.tar.bz2 linux-stable-cc4b15670340315fb0b25d886c06bffb5f128f02.zip |
spi: Constify spi_get_ctldata()'s spi parameter
The "spi" parameter of spi_get_ctldata() can be const.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/8960e07adaad8d92d2c3aa045af9ee3c5d2130a8.1678704562.git.geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/spi')
-rw-r--r-- | include/linux/spi/spi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index bdb35a91b4bf..6097d2f51266 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -244,7 +244,7 @@ static inline void spi_dev_put(struct spi_device *spi) } /* ctldata is for the bus_controller driver's runtime state */ -static inline void *spi_get_ctldata(struct spi_device *spi) +static inline void *spi_get_ctldata(const struct spi_device *spi) { return spi->controller_state; } |