Re: [PATCH 09/27] leds: Allow compile test of GPIO consumers if !GPIOLIB

2015-05-07 Thread Jacek Anaszewski
On 05/05/2015 06:32 PM, Geert Uytterhoeven wrote: The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer functionality only, can still be compiled if GPIOLIB is not enabled. Relax the dependency on GPIOLIB

Re: [PATCH 09/27] leds: Allow compile test of GPIO consumers if !GPIOLIB

2015-05-06 Thread Geert Uytterhoeven
Hi Jacek, On Wed, May 6, 2015 at 9:58 AM, Jacek Anaszewski wrote: > Why don't you apply the same modification to all LED Kconfig > entries with GPIOLIB dependency? LEDS_PCA9532_GPIO is a GPIO provider, not a consumer. There are no dummies for GPIO providers. LEDS_GPIO doesn't compile if !GPIOLIB

Re: [PATCH 09/27] leds: Allow compile test of GPIO consumers if !GPIOLIB

2015-05-06 Thread Jacek Anaszewski
Hi Geert, Why don't you apply the same modification to all LED Kconfig entries with GPIOLIB dependency? On 05/05/2015 06:32 PM, Geert Uytterhoeven wrote: The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consu

[PATCH 09/27] leds: Allow compile test of GPIO consumers if !GPIOLIB

2015-05-05 Thread Geert Uytterhoeven
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer functionality only, can still be compiled if GPIOLIB is not enabled. Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate. Sign