linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next v2] Documentation: devres: add missing SPI helper
@ 2022-09-23 14:18 Yang Yingliang
  2022-09-26 23:09 ` Jonathan Corbet
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2022-09-23 14:18 UTC (permalink / raw)
  To: linux-doc, linux-spi; +Cc: corbet, broonie, lukas, yangyingliang

Add devm_spi_alloc_master() and devm_spi_alloc_slave() to devres.rst.
They are introduced by commit 5e844cc37a5c ("spi: Introduce device-managed
SPI controller allocation").

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
---
v2:
  Put alloc functions above the register function.
---
 Documentation/driver-api/driver-model/devres.rst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst
index 2895f9ea00c4..7a3c34214c4c 100644
--- a/Documentation/driver-api/driver-model/devres.rst
+++ b/Documentation/driver-api/driver-model/devres.rst
@@ -436,6 +436,8 @@ SLAVE DMA ENGINE
   devm_acpi_dma_controller_register()
 
 SPI
+  devm_spi_alloc_master()
+  devm_spi_alloc_slave()
   devm_spi_register_master()
 
 WATCHDOG
-- 
2.25.1


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

* Re: [PATCH -next v2] Documentation: devres: add missing SPI helper
  2022-09-23 14:18 [PATCH -next v2] Documentation: devres: add missing SPI helper Yang Yingliang
@ 2022-09-26 23:09 ` Jonathan Corbet
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2022-09-26 23:09 UTC (permalink / raw)
  To: Yang Yingliang, linux-doc, linux-spi; +Cc: broonie, lukas, yangyingliang

Yang Yingliang <yangyingliang@huawei.com> writes:

> Add devm_spi_alloc_master() and devm_spi_alloc_slave() to devres.rst.
> They are introduced by commit 5e844cc37a5c ("spi: Introduce device-managed
> SPI controller allocation").
>
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> Reviewed-by: Lukas Wunner <lukas@wunner.de>
> ---
> v2:
>   Put alloc functions above the register function.
> ---
>  Documentation/driver-api/driver-model/devres.rst | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst
> index 2895f9ea00c4..7a3c34214c4c 100644
> --- a/Documentation/driver-api/driver-model/devres.rst
> +++ b/Documentation/driver-api/driver-model/devres.rst
> @@ -436,6 +436,8 @@ SLAVE DMA ENGINE
>    devm_acpi_dma_controller_register()
>  
>  SPI
> +  devm_spi_alloc_master()
> +  devm_spi_alloc_slave()
>    devm_spi_register_master()

Applied, thanks.

jon

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-23 14:18 [PATCH -next v2] Documentation: devres: add missing SPI helper Yang Yingliang
2022-09-26 23:09 ` Jonathan Corbet

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