extcon: Allow compile test of GPIO consumers if !GPIOLIB
[firefly-linux-kernel-4.4.55.git] / drivers / extcon / Kconfig
index b74e1f27688b55f761b02baa921c8f1a1decedf4..0cebbf668886a82772e152c9fb9cd9aa1e3da3f9 100644 (file)
@@ -37,7 +37,7 @@ config EXTCON_AXP288
 
 config EXTCON_GPIO
        tristate "GPIO extcon support"
-       depends on GPIOLIB
+       depends on GPIOLIB || COMPILE_TEST
        help
          Say Y here to enable GPIO based extcon support. Note that GPIO
          extcon supports single state per extcon instance.
@@ -112,7 +112,7 @@ config EXTCON_SM5502
 
 config EXTCON_USB_GPIO
        tristate "USB GPIO extcon support"
-       depends on GPIOLIB
+       depends on GPIOLIB || COMPILE_TEST
        help
          Say Y here to enable GPIO based USB cable detection extcon support.
          Used typically if GPIO is used for USB ID pin detection.