linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] spi: add devm_spi_optimize_message() helper
@ 2024-06-21 20:51 David Lechner
  2024-06-21 20:51 ` [PATCH 1/3] Documentation: devres: add missing SPI helpers David Lechner
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: David Lechner @ 2024-06-21 20:51 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.

---
David Lechner (3):
      Documentation: devres: add missing SPI helpers
      spi: add devm_spi_optimize_message() helper
      iio: adc: ad7944: use devm_spi_optimize_message()

 Documentation/driver-api/driver-model/devres.rst |  3 +++
 drivers/iio/adc/ad7944.c                         | 26 +++--------------------
 drivers/spi/spi.c                                | 27 ++++++++++++++++++++++++
 include/linux/spi/spi.h                          |  2 ++
 4 files changed, 35 insertions(+), 23 deletions(-)
---
base-commit: 0ca645ab5b1528666f6662a0e620140355b5aea3
change-id: 20240621-devm_spi_optimize_message-ebbde029dd7a

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

end of thread, other threads:[~2024-06-24 19:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-21 20:51 [PATCH 0/3] spi: add devm_spi_optimize_message() helper David Lechner
2024-06-21 20:51 ` [PATCH 1/3] Documentation: devres: add missing SPI helpers David Lechner
2024-06-21 20:51 ` [PATCH 2/3] spi: add devm_spi_optimize_message() helper David Lechner
2024-06-24 19:44   ` Jonathan Cameron
2024-06-21 20:51 ` [PATCH 3/3] iio: adc: ad7944: use devm_spi_optimize_message() David Lechner
2024-06-23 10:15 ` [PATCH 0/3] spi: add devm_spi_optimize_message() helper Jonathan Cameron
2024-06-23 16:47 ` (subset) " Mark Brown
2024-06-23 17:20 ` Mark Brown
2024-06-24 19:39   ` Jonathan Cameron
2024-06-24 19:43     ` Jonathan Cameron

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