projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c8400e
)
spi: Constify spi_get_ctldata()'s spi parameter
author
Geert Uytterhoeven
<geert+renesas@glider.be>
Mon, 13 Mar 2023 10:58:35 +0000
(11:58 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 13 Mar 2023 14:09:04 +0000
(14:09 +0000)
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>
include/linux/spi/spi.h
patch
|
blob
|
history
diff --git
a/include/linux/spi/spi.h
b/include/linux/spi/spi.h
index bdb35a91b4bf0141dac8dd101c54dcb17d082770..6097d2f5126624eb538d5ef8e82d0c550404fee0 100644
(file)
--- 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;
}