Re: [PATCH -next 0/6] spi: Switch to use devm_spi_alloc_master() in some drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux