Merge tag 'spi-devm-optimize' into togreg
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 30 Jun 2024 10:36:58 +0000 (11:36 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 30 Jun 2024 10:36:58 +0000 (11:36 +0100)
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.


Trivial merge