Re: [PATCH] SPI: Unify simple platform data for some controllers

Alexander Shiyan shc_work at mail.ru
Wed May 29 04:49:13 EDT 2013


> On Wednesday 29 May 2013 10:42:22 Alexander Shiyan wrote:
> > This patch unifies simple pdata for some SPI controllers where only
> > array of GPIOs is used for define chipselects.
> > 
> > Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
> 
> Wouldn't it be better to kill off the platform_data for these drivers
> and pass the gpio number through spi->controller_data as the
> spi_gpio driver does?

Interesting way. Just one question remains, for using not-dt variant,
how  we should specify num_chipselect parameter for master?
I see only way for specify maximum constant in the driver.

---


More information about the linux-arm-kernel mailing list