mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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>
This commit is contained in:
parent
dba5ff95b6
commit
0e441665bc
1 changed files with 5 additions and 3 deletions
|
@ -36,14 +36,16 @@ config LCD_CORGI
|
|||
|
||||
config LCD_L4F00242T03
|
||||
tristate "Epson L4F00242T03 LCD"
|
||||
depends on SPI_MASTER && GPIOLIB
|
||||
depends on SPI_MASTER
|
||||
depends on GPIOLIB || COMPILE_TEST
|
||||
help
|
||||
SPI driver for Epson L4F00242T03. This provides basic support
|
||||
for init and powering the LCD up/down through a sysfs interface.
|
||||
|
||||
config LCD_LMS283GF05
|
||||
tristate "Samsung LMS283GF05 LCD"
|
||||
depends on SPI_MASTER && GPIOLIB
|
||||
depends on SPI_MASTER
|
||||
depends on GPIOLIB || COMPILE_TEST
|
||||
help
|
||||
SPI driver for Samsung LMS283GF05. This provides basic support
|
||||
for powering the LCD up/down through a sysfs interface.
|
||||
|
@ -434,7 +436,7 @@ config BACKLIGHT_AS3711
|
|||
|
||||
config BACKLIGHT_GPIO
|
||||
tristate "Generic GPIO based Backlight Driver"
|
||||
depends on GPIOLIB
|
||||
depends on GPIOLIB || COMPILE_TEST
|
||||
help
|
||||
If you have a LCD backlight adjustable by GPIO, say Y to enable
|
||||
this driver.
|
||||
|
|
Loading…
Reference in a new issue