]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
commit4f291b30163737103e60bdc7c4d62a7121b0d715
tree98e4b71f0307d13f407b7af93cb37c678f6010c2
parentebe061b9cc80dfff68fa6a46d412d85d67b68be3
parent7e74a45c7afdd8a9f82d14fd79ae0383bbaaed1e
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.