Re: [PATCH] spi: Add builtin_spi_driver() to avoid registration boilerplate

2015-12-16 Thread Mark Brown
On Wed, Dec 16, 2015 at 09:21:17AM -0500, Paul Gortmaker wrote: > Looking at the existing use case - in: > drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c > it would appear that the SPI driver is embedded within another driver > that the author decided to make non-modular. Others that don't

Re: [PATCH] spi: Add builtin_spi_driver() to avoid registration boilerplate

2015-12-16 Thread Paul Gortmaker
[Re: [PATCH] spi: Add builtin_spi_driver() to avoid registration boilerplate] On 16/12/2015 (Wed 13:23) Mark Brown wrote: > On Sun, Dec 13, 2015 at 03:53:57PM -0500, Paul Gortmaker wrote: > > > Here we use that support and extend it to SPI driver registration, so where > > a

Re: [PATCH] spi: Add builtin_spi_driver() to avoid registration boilerplate

2015-12-16 Thread Mark Brown
On Sun, Dec 13, 2015 at 03:53:57PM -0500, Paul Gortmaker wrote: > Here we use that support and extend it to SPI driver registration, so where > a driver is clearly non-modular and builtin-only, we can register it in a > similar fashion. Existing code that is clearly non-modular can be updated >

Re: [PATCH] spi: Add builtin_spi_driver() to avoid registration boilerplate

2015-12-16 Thread Mark Brown
On Wed, Dec 16, 2015 at 09:21:17AM -0500, Paul Gortmaker wrote: > Looking at the existing use case - in: > drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c > it would appear that the SPI driver is embedded within another driver > that the author decided to make non-modular. Others that don't

Re: [PATCH] spi: Add builtin_spi_driver() to avoid registration boilerplate

2015-12-16 Thread Mark Brown
On Sun, Dec 13, 2015 at 03:53:57PM -0500, Paul Gortmaker wrote: > Here we use that support and extend it to SPI driver registration, so where > a driver is clearly non-modular and builtin-only, we can register it in a > similar fashion. Existing code that is clearly non-modular can be updated >

Re: [PATCH] spi: Add builtin_spi_driver() to avoid registration boilerplate

2015-12-16 Thread Paul Gortmaker
[Re: [PATCH] spi: Add builtin_spi_driver() to avoid registration boilerplate] On 16/12/2015 (Wed 13:23) Mark Brown wrote: > On Sun, Dec 13, 2015 at 03:53:57PM -0500, Paul Gortmaker wrote: > > > Here we use that support and extend it to SPI driver registration, so where > > a

[PATCH] spi: Add builtin_spi_driver() to avoid registration boilerplate

2015-12-13 Thread Paul Gortmaker
In commit f309d4443130bf814e991f836e919dca22df37ae ("platform_device: better support builtin boilerplate avoidance") we introduced the builtin_driver macro. Here we use that support and extend it to SPI driver registration, so where a driver is clearly non-modular and builtin-only, we can

[PATCH] spi: Add builtin_spi_driver() to avoid registration boilerplate

2015-12-13 Thread Paul Gortmaker
In commit f309d4443130bf814e991f836e919dca22df37ae ("platform_device: better support builtin boilerplate avoidance") we introduced the builtin_driver macro. Here we use that support and extend it to SPI driver registration, so where a driver is clearly non-modular and builtin-only, we can