summaryrefslogtreecommitdiff
path: root/drivers/platform/chrome
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-05-28 18:58:46 +0300
committerBenson Leung <bleung@chromium.org>2018-05-29 08:51:27 +0300
commit485aa74a8e94d6ca7360a2fa75539d2e312815bf (patch)
tree968e230b13cfbdcd935b00b666af54c9ade8c492 /drivers/platform/chrome
parent4574d1d61da3561713a6bb7332abe8ff5a9c7fbf (diff)
downloadlinux-485aa74a8e94d6ca7360a2fa75539d2e312815bf.tar.xz
platform: chrome: Add input dependency for tablet switch driver
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>
Diffstat (limited to 'drivers/platform/chrome')
-rw-r--r--drivers/platform/chrome/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/chrome/Kconfig b/drivers/platform/chrome/Kconfig
index 57aabe6e94a3..cb0df9eb3e0f 100644
--- a/drivers/platform/chrome/Kconfig
+++ b/drivers/platform/chrome/Kconfig
@@ -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.