summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2015-05-05 12:32:39 -0400
committerLee Jones <lee.jones@linaro.org>2015-06-23 10:47:32 -0400
commit0e441665bc6286a306a23cb0354b56d61e1d9ce6 (patch)
tree0804adcf57956a53859069dc66511284cf6e221c /drivers/video
parentdba5ff95b6b810577d4881a28f1243960226bb14 (diff)
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/backlight/Kconfig8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig
index 2d9923a60076..0505b796d743 100644
--- a/drivers/video/backlight/Kconfig
+++ b/drivers/video/backlight/Kconfig
@@ -36,14 +36,16 @@ config LCD_CORGI
36 36
37config LCD_L4F00242T03 37config LCD_L4F00242T03
38 tristate "Epson L4F00242T03 LCD" 38 tristate "Epson L4F00242T03 LCD"
39 depends on SPI_MASTER && GPIOLIB 39 depends on SPI_MASTER
40 depends on GPIOLIB || COMPILE_TEST
40 help 41 help
41 SPI driver for Epson L4F00242T03. This provides basic support 42 SPI driver for Epson L4F00242T03. This provides basic support
42 for init and powering the LCD up/down through a sysfs interface. 43 for init and powering the LCD up/down through a sysfs interface.
43 44
44config LCD_LMS283GF05 45config LCD_LMS283GF05
45 tristate "Samsung LMS283GF05 LCD" 46 tristate "Samsung LMS283GF05 LCD"
46 depends on SPI_MASTER && GPIOLIB 47 depends on SPI_MASTER
48 depends on GPIOLIB || COMPILE_TEST
47 help 49 help
48 SPI driver for Samsung LMS283GF05. This provides basic support 50 SPI driver for Samsung LMS283GF05. This provides basic support
49 for powering the LCD up/down through a sysfs interface. 51 for powering the LCD up/down through a sysfs interface.
@@ -434,7 +436,7 @@ config BACKLIGHT_AS3711
434 436
435config BACKLIGHT_GPIO 437config BACKLIGHT_GPIO
436 tristate "Generic GPIO based Backlight Driver" 438 tristate "Generic GPIO based Backlight Driver"
437 depends on GPIOLIB 439 depends on GPIOLIB || COMPILE_TEST
438 help 440 help
439 If you have a LCD backlight adjustable by GPIO, say Y to enable 441 If you have a LCD backlight adjustable by GPIO, say Y to enable
440 this driver. 442 this driver.