Re: [PATCH/RFC] spi: Generalize SPI "master" to "controller"

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

 



On Thu, May 04, 2017 at 07:49:00PM +0200, Geert Uytterhoeven wrote:
> Now struct spi_master is used for both SPI master and slave controllers,
> it makes sense to rename it to struct spi_controller, and replace
> "master" by "controller" where appropriate.

> For now this conversion is done for SPI core infrastructure only.
> Wrappers are provided for backwards compatibility, until all SPI drivers
> have been converted.

This makes sense to me.  The patch needs a rebase though.

> I guess we don't need an spi_busnum_to_slave()?
> There's also only one user of spi_busnum_to_master(), in
> drivers/staging/fbtft/fbtft_device.c

Hrm, I'm not sure that either of those functions has a strong use case.
I'm not quite sure from a quick glance at that staging driver what
exactly it's trying to do there, it looks like it's something that'd
need refactoring to go out of staging.

Attachment: signature.asc
Description: PGP signature


[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