瀏覽代碼

Input: goldfish - allow compile the driver with COMPILE_TEST

The driver depends on GOLDFISH but there isn't a build dependency
so it's a good idea to allow the driver to be built even if that
option is disabled, if the COMPILE_TEST option is enabled.

That way, the driver can be built with a config generated by make
allyesconfig and can be checked if a patch would break the build.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Javier Martinez Canillas 10 年之前
父節點
當前提交
aaa59e0911
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/input/keyboard/Kconfig

+ 1 - 1
drivers/input/keyboard/Kconfig

@@ -516,7 +516,7 @@ config KEYBOARD_SAMSUNG
 	  module will be called samsung-keypad.
 	  module will be called samsung-keypad.
 
 
 config KEYBOARD_GOLDFISH_EVENTS
 config KEYBOARD_GOLDFISH_EVENTS
-	depends on GOLDFISH
+	depends on GOLDFISH || COMPILE_TEST
 	tristate "Generic Input Event device for Goldfish"
 	tristate "Generic Input Event device for Goldfish"
 	help
 	help
 	  Say Y here to get an input event device for the Goldfish virtual
 	  Say Y here to get an input event device for the Goldfish virtual