linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] spi: add devm_spi_optimize_message() helper
@ 2024-06-24 20:10 David Lechner
  2024-06-24 20:10 ` [PATCH v2 1/2] spi: add EXPORT_SYMBOL_GPL(devm_spi_optimize_message) David Lechner
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: David Lechner @ 2024-06-24 20:10 UTC (permalink / raw)
  To: Mark Brown, Jonathan Cameron
  Cc: David Lechner, Michael Hennerich, Nuno Sá, Marcelo Schmitt,
	Jonathan Corbet, linux-doc, linux-kernel, linux-spi, linux-iio

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.

---
Changes in v2:
- Dropped already applied SPI patches.
- Added patch to fix missing EXPORT_SYMBOL_GPL.
- Link to v1: https://lore.kernel.org/r/20240621-devm_spi_optimize_message-v1-0-3f9dcba6e95e@baylibre.com

---
David Lechner (2):
      spi: add EXPORT_SYMBOL_GPL(devm_spi_optimize_message)
      iio: adc: ad7944: use devm_spi_optimize_message()

 drivers/iio/adc/ad7944.c | 26 +++-----------------------
 drivers/spi/spi.c        |  1 +
 2 files changed, 4 insertions(+), 23 deletions(-)
---
base-commit: 17436001a6bc42c7f55dc547ca5b1a873208d91d
change-id: 20240621-devm_spi_optimize_message-ebbde029dd7a

Best regards,
-- 
David Lechner <dlechner@baylibre.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-25 18:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-24 20:10 [PATCH v2 0/2] spi: add devm_spi_optimize_message() helper David Lechner
2024-06-24 20:10 ` [PATCH v2 1/2] spi: add EXPORT_SYMBOL_GPL(devm_spi_optimize_message) David Lechner
2024-06-24 20:19   ` Mark Brown
2024-06-25 16:24   ` Mark Brown
2024-06-24 20:10 ` [PATCH v2 2/2] iio: adc: ad7944: use devm_spi_optimize_message() David Lechner
2024-06-25 18:46 ` (subset) [PATCH v2 0/2] spi: add devm_spi_optimize_message() helper Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).