diff options
| author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-06-30 11:36:58 +0100 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-06-30 11:36:58 +0100 |
| commit | 4f291b30163737103e60bdc7c4d62a7121b0d715 (patch) | |
| tree | 98e4b71f0307d13f407b7af93cb37c678f6010c2 /Documentation/driver-api | |
| parent | ebe061b9cc80dfff68fa6a46d412d85d67b68be3 (diff) | |
| parent | 7e74a45c7afdd8a9f82d14fd79ae0383bbaaed1e (diff) | |
| download | lwn-4f291b30163737103e60bdc7c4d62a7121b0d715.tar.gz lwn-4f291b30163737103e60bdc7c4d62a7121b0d715.zip | |
Merge tag 'spi-devm-optimize' into togreg
spi: add devm_spi_optimize_message() helper
Helper from David Lechner <dlechner@baylibre.com>:
In the IIO subsystem, we are finding that it is common to call
spi_optimize_message() during driver probe since the SPI message
doesn't change for the lifetime of the driver. This patch adds a
devm_spi_optimize_message() helper to simplify this common pattern.
Diffstat (limited to 'Documentation/driver-api')
| -rw-r--r-- | Documentation/driver-api/driver-model/devres.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst index 18caebad7376..ac9ee7441887 100644 --- a/Documentation/driver-api/driver-model/devres.rst +++ b/Documentation/driver-api/driver-model/devres.rst @@ -464,7 +464,10 @@ 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() WATCHDOG devm_watchdog_register_device() |
