backlight: Allow compile test of GPIO consumers if !GPIOLIB
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 5 May 2015 16:32:39 +0000 (18:32 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Jun 2015 14:47:32 +0000 (15:47 +0100)
commit0e441665bc6286a306a23cb0354b56d61e1d9ce6
tree0804adcf57956a53859069dc66511284cf6e221c
parentdba5ff95b6b810577d4881a28f1243960226bb14
backlight: Allow compile test of GPIO consumers if !GPIOLIB

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.

Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/Kconfig