Message ID | 20220917122639.1896965-1-yangyingliang@huawei.com |
---|---|
State | New |
Headers | show |
Series | [-next] Documentation: devres: add missing SPI helper | expand |
Hi Lukas, On 2022/9/23 13:55, Lukas Wunner wrote: > On Sat, Sep 17, 2022 at 08:26:39PM +0800, Yang Yingliang wrote: >> 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> >> --- >> 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 76cc256c9e4f..1bd6f38dd7e3 100644 >> --- a/Documentation/driver-api/driver-model/devres.rst >> +++ b/Documentation/driver-api/driver-model/devres.rst >> @@ -437,6 +437,8 @@ SLAVE DMA ENGINE >> >> SPI >> devm_spi_register_master() >> + devm_spi_alloc_master() >> + devm_spi_alloc_slave() >> >> WATCHDOG >> devm_watchdog_register_device() > Putting the alloc functions above the register function would > probably be more in line with how they're used. Apart from that: Do I need send a v2 to move up alloc functions with your review tag. Thanks, Yang > > Reviewed-by: Lukas Wunner <lukas@wunner.de> > .
diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst index 76cc256c9e4f..1bd6f38dd7e3 100644 --- a/Documentation/driver-api/driver-model/devres.rst +++ b/Documentation/driver-api/driver-model/devres.rst @@ -437,6 +437,8 @@ SLAVE DMA ENGINE SPI devm_spi_register_master() + devm_spi_alloc_master() + devm_spi_alloc_slave() WATCHDOG devm_watchdog_register_device()
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> --- Documentation/driver-api/driver-model/devres.rst | 2 ++ 1 file changed, 2 insertions(+)