platform: chrome: Add input dependency for tablet switch driver
authorArnd Bergmann <arnd@arndb.de>
Mon, 28 May 2018 15:58:46 +0000 (17:58 +0200)
committerBenson Leung <bleung@chromium.org>
Tue, 29 May 2018 05:51:27 +0000 (22:51 -0700)
Without CONFIG_INPUT, or with a modular input layer and built-in
tablet driver, we get a link error:

ERROR: "input_event" [drivers/platform/chrome/chromeos_tbmc.ko] undefined!
ERROR: "input_register_device" [drivers/platform/chrome/chromeos_tbmc.ko] undefined!
ERROR: "input_set_capability" [drivers/platform/chrome/chromeos_tbmc.ko] undefined!
ERROR: "devm_input_allocate_device" [drivers/platform/chrome/chromeos_tbmc.ko] undefined!

This adds the corresponding Kconfig dependency

Fixes: b418f74170d7 ("platform: chrome: Add Tablet Switch ACPI driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/Kconfig

index 57aabe6..cb0df9e 100644 (file)
@@ -41,6 +41,7 @@ config CHROMEOS_PSTORE
 config CHROMEOS_TBMC
        tristate "ChromeOS Tablet Switch Controller"
        depends on ACPI
+       depends on INPUT
        help
          This option adds a driver for the tablet switch on
          select Chrome OS systems.