diff options
author | David Lechner <dlechner@baylibre.com> | 2024-06-21 23:51:31 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-06-22 14:14:33 +0300 |
commit | d4a0055fdc22381fa256e345095e88d134e354c5 (patch) | |
tree | 230e9dcb0562b19d66aec08f8e40c9cc0cb55412 /Documentation/driver-api | |
parent | 9b894d65e9788ece0d51e76d2c184524900f5ec9 (diff) | |
download | linux-d4a0055fdc22381fa256e345095e88d134e354c5.tar.xz |
spi: add devm_spi_optimize_message() helper
This adds a new helper function devm_spi_optimize_message() that
automatically registers spi_unoptimize_message() to be called
when the device is removed.
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20240621-devm_spi_optimize_message-v1-2-3f9dcba6e95e@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/driver-api')
-rw-r--r-- | Documentation/driver-api/driver-model/devres.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst index a1c17bcae68d..ac9ee7441887 100644 --- a/Documentation/driver-api/driver-model/devres.rst +++ b/Documentation/driver-api/driver-model/devres.rst @@ -464,6 +464,7 @@ SLAVE DMA ENGINE SPI devm_spi_alloc_master() devm_spi_alloc_slave() + devm_spi_optimize_message() devm_spi_register_controller() devm_spi_register_host() devm_spi_register_target() |