Revert "Revert "switch: switch class and GPIO drivers.""
[firefly-linux-kernel-4.4.55.git] / drivers / switch / Kconfig
diff --git a/drivers/switch/Kconfig b/drivers/switch/Kconfig
new file mode 100644 (file)
index 0000000..19404b6
--- /dev/null
@@ -0,0 +1,15 @@
+menuconfig SWITCH
+       tristate "Switch class support"
+       help
+         Say Y here to enable switch class support. This allows
+         monitoring switches by userspace via sysfs and uevent.
+
+if SWITCH
+
+config SWITCH_GPIO
+       tristate "GPIO Swith support"
+       depends on GPIOLIB
+       help
+         Say Y here to enable GPIO based switch support.
+
+endif # SWITCH