]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: add devm_spi_optimize_message() helper
authorMark Brown <broonie@kernel.org>
Tue, 25 Jun 2024 17:49:11 +0000 (18:49 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 25 Jun 2024 17:49:11 +0000 (18:49 +0100)
commitf01062881f8101f97d57e0ba97020808bfba9ccd
tree830651d7ce054eb44065e67b55a9eae0b0da5980
parent6765e859fac9acdc1265b6f16ed33f42317ed30e
parent7e74a45c7afdd8a9f82d14fd79ae0383bbaaed1e
spi: add devm_spi_optimize_message() helper

Merge series 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.
drivers/spi/spi.c