From patchwork Mon May 28 15:58:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 137104 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2993833lji; Mon, 28 May 2018 08:59:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpp2F+IBrzHGw0rR2EkQG9D5CjvEjZv3C01KMsi6pVtfXC3HmClpqlTV+gDeOG9VtiIxBO8 X-Received: by 2002:aa7:850f:: with SMTP id v15-v6mr14021136pfn.144.1527523172425; Mon, 28 May 2018 08:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527523172; cv=none; d=google.com; s=arc-20160816; b=e+2OIwDaxKTIily8pVk9rBiliPiD+r8mNgi1iKRjjIL37WOCv5JIZhp0NrEuZzdnsg gzSWmHaFjn0GOwRfRAmb0rXhfKhWYNV0oHba2Wvcq+tw+fh3vH4g5cTWV9MtfF+UoN2q Ya10WJU193RRFFp9oL/rZCKzRTiYjtzWQjrEvOJtSQwQ7Zj13HtRnOi/WEmGFthvVjHW PgV6X5EDqFxE2nQHGWnHukqU/ysj5qtt1ebtUjskVXLCqDckN+gSOvcQWqtO9th9dkmV c5DOFT6oRqj1DnkbdiIe4D7dCZxup7en6mtNqty0I9tAc53I58Rtil3yP4IYULLmZsen wb7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=y7Rhl97Ig0Uuga2YM3GFQeIFhNytHDeEgykCjuxErck=; b=ocWYetpF0qW3HwiM7Fq4H9eOvng4MQ2jO7B7zUp35MZ4vjoi0egJSDHLhJcl4qjSCE LAOChheoetEvFgjMxXXSjpOrfmOMaJXdzjRNoH8XdW5Xltxo7p/hA6+bdBi+3Nkx0neg VfddgshaChqTaESU+tDA7SBCDOhVVflHkCQizqPenhRy3UBcVtsUym9oynx9xUKhKa+1 svV2iyv7Ks5X+6Pl2vrKQ89EiKP3bQk6+px9d7EYcyK7XceOh8I3p5jFK8MaLx44ZXOT gW949vAl2+zaHQ3Zcq/FkbF/3AZn9cb8qsV7WMQJ0iRzbreHxZQi1ERls0zqn1fqt3kl kh+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12-v6si31556865pfi.212.2018.05.28.08.59.32; Mon, 28 May 2018 08:59:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932877AbeE1P73 (ORCPT + 30 others); Mon, 28 May 2018 11:59:29 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:50951 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932729AbeE1P7C (ORCPT ); Mon, 28 May 2018 11:59:02 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue007 [212.227.15.129]) with ESMTPA (Nemesis) id 0LdgKV-1g6Fkt0jat-00j4TJ; Mon, 28 May 2018 17:59:00 +0200 From: Arnd Bergmann To: Benson Leung , Olof Johansson Cc: Arnd Bergmann , Gwendal Grignou , Thierry Escande , Lee Jones , Shawn Nematbakhsh , linux-kernel@vger.kernel.org Subject: [PATCH] platform: chrome: Add input dependency for tablet switch driver Date: Mon, 28 May 2018 17:58:46 +0200 Message-Id: <20180528155858.2966723-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:7yQ/qrJTiO4zeqavhzbkzn1xs9IW5rZavdqFq/Oer4kfrIskvJg slxD5Ax9FDc5grvdRKj4qW81hcC1zDptvfUDGL0JNJ54y9p+GZDgBar53ghuY1PGtIKMu7z Y50YYNyzWbZwrGNbDRcJuJASWX4Xo0KfXXanjw4H9FU5v5Q2m0PYQChaJYO7Wcn4XdK5XTt JwIyt+6i3B1EqWzeUFkfw== X-UI-Out-Filterresults: notjunk:1; V01:K0:hkSHGmWifxI=:f3VdYOwqK67k1QA5mnjZqb GzqNuQsr7VDwXgjhtdLqPRt0TLKd9vHR2+c+g/gKKWnwRhkbHfCAq44yrEAzsH3Zp4k6Q2cQR bcvBPvMjIN/VrvCvfFZRhdR5IVPvTDYB1UAGW7rXs2g3khyDWsGUjGb+/z9RkmeZ1DgK0KP6b 3usNsifnnB6TxUb0KdfSB+9t8mZ1KVkK75fx911gmxXlrK5nzdsbsyDxBstfX2TYYQXoIdOpo 3Q4mEXjbgAC/6KPVZZ0Ro8CFd71D9MR0Si9NZFHayTvE7//EoNhU3xU/1GAK+ZMsgUb30f+WP 9FadRzMJCJxePmCZfrH8oaIlVIWMTWVVi/auZUISQeFS1ruyb89mxlvBY37yiTAKH/JbUZJgv I+GvecgsZcLVUI8/onTmLtkf9Jeb20qsTenp53SxYdewDIbE0DKIzs4Tw7jSyke6j1dSil/Xn udlB7RYLltCXMiLnNxVXX1CjjGb7dA2zcTOcAmvbOlPBELBBNrohDKz3cSAc7s+kGgF2td9HP QYyqdoROK8NU/yGvXyPrWGgJvJYm3pvp7iEAF+25mvV2qRkdLFdS2U36fTdtc5CarIQgePkjQ mSaKGdsLpSSes+ZsYzEae5+QPO5eOlym3I/d+s2PmriDclwhOzRpYGSqTO0khZb6UeEDz7bqw RSXkDqsr75e1X9p0JFh76jZDt/YbKfNGZCDI/yRpC4WUKhlOZKf6wH0mt4DBWtsPV75I= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/platform/chrome/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 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.