From patchwork Wed Sep 28 05:15:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.abraham@linaro.org X-Patchwork-Id: 4384 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E46C123F56 for ; Wed, 28 Sep 2011 05:16:14 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id D9A04A186C8 for ; Wed, 28 Sep 2011 05:16:14 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id 23so343240fxe.11 for ; Tue, 27 Sep 2011 22:16:14 -0700 (PDT) Received: by 10.223.30.151 with SMTP id u23mr4328045fac.122.1317186974723; Tue, 27 Sep 2011 22:16:14 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.3.234 with SMTP id f10cs99758laf; Tue, 27 Sep 2011 22:16:14 -0700 (PDT) Received: by 10.101.139.40 with SMTP id r40mr8015308ann.53.1317186973233; Tue, 27 Sep 2011 22:16:13 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id q20si6072281anf.96.2011.09.27.22.16.12; Tue, 27 Sep 2011 22:16:13 -0700 (PDT) Received-SPF: neutral (google.com: 203.254.224.34 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.34 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org Received: from epcpsbgm1.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LS700ABIVWVK650@mailout4.samsung.com> for patches@linaro.org; Wed, 28 Sep 2011 14:16:01 +0900 (KST) X-AuditID: cbfee61a-b7cf1ae00000208e-5b-4e82ad90194a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (MMPCPMTA) with SMTP id E9.1A.08334.09DA28E4; Wed, 28 Sep 2011 14:16:01 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTPA id <0LS700G9LVYFNV00@mmp1.samsung.com> for patches@linaro.org; Wed, 28 Sep 2011 14:16:00 +0900 (KST) From: Thomas Abraham To: devicetree-discuss@lists.ozlabs.org, dmitry.torokhov@gmail.com Cc: grant.likely@secretlab.ca, linux-input@vger.kernel.org, kgene.kim@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jy0922.shim@samsung.com, dh09.lee@samsung.com, patches@linaro.org Subject: [PATCH v4 1/2] input: samsung-keypad: Add HAVE_SAMSUNG_KEYPAD config option Date: Wed, 28 Sep 2011 10:45:25 +0530 Message-id: <1317186926-17822-2-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 In-reply-to: <1317186926-17822-1-git-send-email-thomas.abraham@linaro.org> References: <1317186926-17822-1-git-send-email-thomas.abraham@linaro.org> X-Brightmail-Tracker: AAAAAA== For platforms using device tree, the static keypad device instances are not required and SAMSUNG_DEV_KEYPAD is not selected. Since, samsung keypad driver has dependency on SAMSUNG_DEV_KEYPAD config option, the driver is left out of the compilation for dt enabled platforms. An additional config option 'HAVE_SAMSUNG_KEYPAD' is added which the device tree based platforms can select. This config option is added as an alternative dependency for keypad driver. Signed-off-by: Thomas Abraham --- drivers/input/keyboard/Kconfig | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index b4dee9d..7c322a3 100644 --- a/drivers/input/keyboard/Kconfig +++ b/drivers/input/keyboard/Kconfig @@ -423,9 +423,16 @@ config KEYBOARD_PMIC8XXX To compile this driver as a module, choose M here: the module will be called pmic8xxx-keypad. +config HAVE_SAMSUNG_KEYPAD + bool + help + This will include Samsung Keypad controller driver support. If you + want to include Samsung Keypad support for any machine, kindly + select this in the respective mach-xxxx/Kconfig file. + config KEYBOARD_SAMSUNG tristate "Samsung keypad support" - depends on SAMSUNG_DEV_KEYPAD + depends on SAMSUNG_DEV_KEYPAD || HAVE_SAMSUNG_KEYPAD help Say Y here if you want to use the Samsung keypad.