From patchwork Mon Apr 24 07:42:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 9695769 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 15412601E9 for ; Mon, 24 Apr 2017 07:42:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0261F26530 for ; Mon, 24 Apr 2017 07:42:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA44B267EC; Mon, 24 Apr 2017 07:42:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CE7426530 for ; Mon, 24 Apr 2017 07:42:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1166179AbdDXHmg (ORCPT ); Mon, 24 Apr 2017 03:42:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:54516 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1166139AbdDXHmg (ORCPT ); Mon, 24 Apr 2017 03:42:36 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8599FAC87; Mon, 24 Apr 2017 07:42:34 +0000 (UTC) Date: Mon, 24 Apr 2017 09:42:31 +0200 From: Jean Delvare To: linux-input@vger.kernel.org Cc: Jaechul Lee , Beomho Seo , Javier Martinez Canillas , Andi Shyti , Chanwoo Choi , Krzysztof Kozlowski , Rob Herring , Dmitry Torokhov Subject: [RFC PATCH] Input: tm2-touchkey - add hardware dependency Message-ID: <20170424094231.435f82de@endymion> Organization: SUSE Linux X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The tm2-touchkey driver is only useful on specific platforms. Add the missing hardware dependency so that the driver is not proposed on systems where the device does not exist. Signed-off-by: Jean Delvare Fixes: 72d1f2346ded ("Input: tm2-touchkey - add touchkey driver support for TM2") Cc: Jaechul Lee Cc: Beomho Seo Cc: Javier Martinez Canillas Cc: Andi Shyti Cc: Chanwoo Choi Cc: Krzysztof Kozlowski Cc: Rob Herring Cc: Dmitry Torokhov --- Note: I am not familar with the hardware in question so I'm not sure if this is the right dependency to add, or if ARM64 would be more appropriate, or something else, or a combination thereof. Please advise. drivers/input/keyboard/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-4.11-rc8.orig/drivers/input/keyboard/Kconfig 2017-04-03 02:23:54.000000000 +0200 +++ linux-4.11-rc8/drivers/input/keyboard/Kconfig 2017-04-24 09:26:43.314252700 +0200 @@ -670,6 +670,7 @@ config KEYBOARD_TM2_TOUCHKEY tristate "TM2 touchkey support" depends on I2C depends on LEDS_CLASS + depends on ARCH_EXYNOS || COMPILE_TEST help Say Y here to enable device driver for tm2-touchkey with LED control for the Exynos5433 TM2 board.