]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: add devm_spi_optimize_message() helper
authorMark Brown <broonie@kernel.org>
Sun, 23 Jun 2024 12:14:18 +0000 (13:14 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 23 Jun 2024 12:14:18 +0000 (13:14 +0100)
commit17436001a6bc42c7f55dc547ca5b1a873208d91d
tree186b872edc5080b90ef1f8fb88f774d4f242775f
parent5d0c35feea339e4a3a9c9e99731e4d49ad5ee329
parentd4a0055fdc22381fa256e345095e88d134e354c5
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
include/linux/spi/spi.h