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)
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.

1  2 
drivers/spi/spi.c
include/linux/spi/spi.h

Simple merge
Simple merge