Hi Mark,
On 2022/9/21 2:33, Mark Brown wrote:
On Tue, Sep 20, 2022 at 09:48:13PM +0800, Yang Yingliang wrote:
This patchset is trying to replace spi_alloc_master() with
devm_spi_alloc_master() 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.
If we're switching please update to the modern naming and use
"controller" rather than the old name.
Do you mean to use spi_controller instead of spi_master? Something like
this:
'struct spi_controller * ctlr = devm_spi_alloc_master();'
Dose spi_master_get_devdata() need be changed to
spi_controller_get_devdata() ?
Thanks,
Yang