Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: fbtft: 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.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Geert Uytterhoeven and committed by
Greg Kroah-Hartman
24b7d011 ad6d8812

+2 -1
+2 -1
drivers/staging/fbtft/Kconfig
··· 1 1 menuconfig FB_TFT 2 2 tristate "Support for small TFT LCD display modules" 3 - depends on FB && SPI && GPIOLIB 3 + depends on FB && SPI 4 + depends on GPIOLIB || COMPILE_TEST 4 5 select FB_SYS_FILLRECT 5 6 select FB_SYS_COPYAREA 6 7 select FB_SYS_IMAGEBLIT