Re: [PATCH 3/5] SPI: Add helper macro for spi_driver boilerplate

2011-11-23 Thread Lars-Peter Clausen
On 11/24/2011 01:13 AM, Ben Dooks wrote: > On Wed, Nov 16, 2011 at 10:12:54AM -0700, Grant Likely wrote: >> On Wed, Nov 16, 2011 at 2:13 AM, Lars-Peter Clausen wrote: >>> This patch introduces the module_spi_driver macro which is a convenience >>> macro >>> for SPI driver modules similar to modul

Re: [PATCH 3/5] SPI: Add helper macro for spi_driver boilerplate

2011-11-23 Thread Ben Dooks
On Wed, Nov 16, 2011 at 10:12:54AM -0700, Grant Likely wrote: > On Wed, Nov 16, 2011 at 2:13 AM, Lars-Peter Clausen wrote: > > This patch introduces the module_spi_driver macro which is a convenience > > macro > > for SPI driver modules similar to module_platform_driver. It is intended to > > be

Re: [PATCH 3/5] SPI: Add helper macro for spi_driver boilerplate

2011-11-16 Thread Grant Likely
On Wed, Nov 16, 2011 at 2:13 AM, Lars-Peter Clausen wrote: > This patch introduces the module_spi_driver macro which is a convenience macro > for SPI driver modules similar to module_platform_driver. It is intended to be > used by drivers which init/exit section does nothing but register/unregiste

[PATCH 3/5] SPI: Add helper macro for spi_driver boilerplate

2011-11-16 Thread Lars-Peter Clausen
This patch introduces the module_spi_driver macro which is a convenience macro for SPI driver modules similar to module_platform_driver. It is intended to be used by drivers which init/exit section does nothing but register/unregister the SPI driver. By using this macro it is possible to eliminate