Skip to content

Commit 3689099

Browse files
geertujmberg-intel
authored andcommitted
rfkill: 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: Johannes Berg <johannes.berg@intel.com>
1 parent eb6d929 commit 3689099

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎net/rfkill/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ config RFKILL_REGULATOR
3636

3737
config RFKILL_GPIO
3838
tristate "GPIO RFKILL driver"
39-
depends on RFKILL && GPIOLIB
39+
depends on RFKILL
40+
depends on GPIOLIB || COMPILE_TEST
4041
default n
4142
help
4243
If you say yes here you get support of a generic gpio RFKILL

0 commit comments

Comments
 (0)