All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next v2 0/6] spi: Switch to use __devm_spi_alloc_controller() in some drivers
@ 2022-09-22  8:30 Yang Yingliang
  2022-09-22  8:30 ` [PATCH -next v2 1/6] spi: oc-tiny: Switch to use __devm_spi_alloc_controller() Yang Yingliang
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Yang Yingliang @ 2022-09-22  8:30 UTC (permalink / raw)
  To: linux-spi; +Cc: broonie, yangyingliang

This patchset is trying to replace spi_alloc_master() with
__devm_spi_alloc_controller() in some spi drivers. With this
helper, spi_master_put() is called in devres_release_all()
whenever the device is unbound, so the spi_master_put() in
error path can be removed.

v2:
  Using controller named struct and functions:
    Using struct spi_controller instead of struct spi_master
    Using __devm_spi_alloc_controller() instead of devm_spi_alloc_master()
    Using spi_controller_get_devdata() instead of spi_master_get_devdata()
    Using devm_spi_register_master() instead of devm_spi_register_controller()


Yang Yingliang (6):
  spi: oc-tiny: Switch to use __devm_spi_alloc_controller()
  spi: ath79: Switch to use __devm_spi_alloc_controller()
  spi: omap-uwire: Switch to use __devm_spi_alloc_controller()
  spi: ppc4xx: Switch to use __devm_spi_alloc_controller()
  spi: sh-sci: Switch to use __devm_spi_alloc_controller()
  spi: altera: Switch to use __devm_spi_alloc_controller()

 drivers/spi/spi-altera-platform.c | 55 ++++++++++++++-----------------
 drivers/spi/spi-ath79.c           | 40 ++++++++++------------
 drivers/spi/spi-oc-tiny.c         | 34 ++++++++-----------
 drivers/spi/spi-omap-uwire.c      | 28 ++++++++--------
 drivers/spi/spi-ppc4xx.c          | 29 +++++++---------
 drivers/spi/spi-sh-sci.c          | 44 ++++++++++---------------
 6 files changed, 98 insertions(+), 132 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2022-09-23  4:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-22  8:30 [PATCH -next v2 0/6] spi: Switch to use __devm_spi_alloc_controller() in some drivers Yang Yingliang
2022-09-22  8:30 ` [PATCH -next v2 1/6] spi: oc-tiny: Switch to use __devm_spi_alloc_controller() Yang Yingliang
2022-09-22  8:30 ` [PATCH -next v2 2/6] spi: ath79: " Yang Yingliang
2022-09-22  8:31 ` [PATCH -next v2 3/6] spi: omap-uwire: " Yang Yingliang
2022-09-22  8:31 ` [PATCH -next v2 4/6] spi: ppc4xx: " Yang Yingliang
2022-09-22  8:31 ` [PATCH -next v2 5/6] spi: sh-sci: " Yang Yingliang
2022-09-22  8:31 ` [PATCH -next v2 6/6] spi: altera: " Yang Yingliang
2022-09-23  4:45 ` [PATCH -next v2 0/6] spi: Switch to use __devm_spi_alloc_controller() in some drivers Lukas Wunner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.