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

leds: leds-gpio: Allow compile test 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 of LEDS_GPIO on GPIOLIB if COMPILE_TEST is
enabled.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>

authored by

Geert Uytterhoeven and committed by
Bryan Wu
9ab1963d 403097f7

+1 -1
+1 -1
drivers/leds/Kconfig
··· 198 198 config LEDS_GPIO 199 199 tristate "LED Support for GPIO connected LEDs" 200 200 depends on LEDS_CLASS 201 - depends on GPIOLIB 201 + depends on GPIOLIB || COMPILE_TEST 202 202 help 203 203 This option enables support for the LEDs connected to GPIO 204 204 outputs. To be useful the particular board must have LEDs