diff options
| author | Johan Hovold <johan@kernel.org> | 2026-04-10 17:49:07 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-04-22 15:10:18 +0100 |
| commit | a6e23843e949081b417b6078f02074074a190499 (patch) | |
| tree | ab63adb6353a613ff3f19ddc5fe81f665a8d8e24 /include | |
| parent | db357034f7e0cf23f233f414a8508312dfe8fbbe (diff) | |
spi: fix controller cleanup() documentation
The controller cleanup() callback is no longer called when releasing a
device, but rather when deregistering it (and on registration failures).
Fixes: c7299fea6769 ("spi: Fix spi device unregister flow")
Cc: Saravana Kannan <saravanak@kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260410154907.129248-3-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
| -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 7587b1c5d7ec..bbb5b870baeb 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -701,7 +701,7 @@ struct spi_controller { int (*transfer)(struct spi_device *spi, struct spi_message *mesg); - /* Called on release() to free memory provided by spi_controller */ + /* Called on deregistration to free memory provided by spi_controller */ void (*cleanup)(struct spi_device *spi); /* |
