From patchwork Thu Aug 8 21:22:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 170855 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp9122610ile; Thu, 8 Aug 2019 14:33:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgJWofPCtRRTGSt+A9fhmAy5X05tgXIcvEjOO/dcih6cM27VXRvVups9pGEVxHu9XNoxkf X-Received: by 2002:a17:902:f089:: with SMTP id go9mr15672503plb.81.1565299991611; Thu, 08 Aug 2019 14:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565299991; cv=none; d=google.com; s=arc-20160816; b=P9Q9XfqjfERALG5j4byK72oM6iFYMj0UzIQlj7Mhp2BVsEUqLatqeNRuaQw0r/REue rxIeDqhdd3cukqSqwrJceBoUnYaUX36xmvywMhIT7A8JXjxpvjmu9MgEZSt3U6OH2O6X NiwYWczLQoLKs6HbCb5l3St+6XJNV7gX9Dtzm4DcY/wUGyY2aWHomj3xLtSQSjiF7L55 iau/p4HZAw4+tHWslOVIRkUKE7skXoCveCu9u8QYiR6LEULqJVA4U/kAkWyxZxwnOutp rjzp1uvA2Osk0P+TTyZslYKMBy6Yn+DycNH/fsuwiVUsxZHojhTSyDKPCC9JdHoIgo47 I0qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=994Jx9nftSgAMQ9AHDaX3JW9y+CKBIfN4UcqUGq7jVo=; b=sFGd0FL2DxbfRoDBNdANnfbF/wbM+OkIS4xYWc3eypwQGRjh5iIjMC9oqxfu2/OkFv z3jFu+ncAQMhnjlMpva759iTr1MWLSxC6EN5f01gGIKxGmbrnCN4w3OspwFRJgOZ6s8n 7zUZVofmvM2KES10E+Fvx+RDwINrldauQt6KfF/EhJTYc9utUqYeo6LELFLbFfaMbMh8 YIZeL9noRMUd/t1gA6CXMLw+QIJ0CwRaUUjK1H4RLrc1URMXriEmeTYV3icbW2rr1ZK6 mQX6oHhKtxmBK0zAXKE/X5CCGc8lT+bZFKYpWk0upiqsFq2fmQJYvPSNZZRNpVEbg6AH Wklw== 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 4si55654404pfo.266.2019.08.08.14.33.11; Thu, 08 Aug 2019 14:33:11 -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 S2404467AbfHHVdK (ORCPT + 28 others); Thu, 8 Aug 2019 17:33:10 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:39043 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730768AbfHHVdI (ORCPT ); Thu, 8 Aug 2019 17:33:08 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1N2SXX-1iJjYP1UhL-013u5K; Thu, 08 Aug 2019 23:32:46 +0200 From: Arnd Bergmann To: Tony Lindgren , Aaro Koskinen , Dmitry Torokhov Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman , Linus Walleij , Bartlomiej Zolnierkiewicz , Tomi Valkeinen , Arnd Bergmann , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 13/22] input: omap: void using mach/*.h headers Date: Thu, 8 Aug 2019 23:22:22 +0200 Message-Id: <20190808212234.2213262-14-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190808212234.2213262-1-arnd@arndb.de> References: <20190808212234.2213262-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:0qwRTzGn4JfIF8ObhfLNMcpu9yXXizpeKZ8JtVuzRlduJYrIrTu owiYK1M1BeeoZObfRphHoHoFwE+LOiX1ZpIVXkWVJtlA88FwZOwAIEAQbxkA8rw8748tobB L9R6rqG2/KIub8SMBItoK1omiDtfLnP875ZN5v9Eufa/Mx0BciFuGxuBgBOUg7D8lrz107Y qJOAe4I7l7LshByQ3Mdow== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:JgEEBB+Nyt4=:+ecHhOdRNmpMi0QmvTk9tX AfQJzmotHNEyy9KCrM19P66/zQDazl3bg2tJ+M+2ZhB3w0Pfi5F2qVquAQWHyea8B6OmOZPJJ rMrn2zHs8MJkdSocphIKI+d+42gnDD/CyqvQygING4qU3VnKlyS9aSPz+DHiPY45H5yrXLm4R HGhliXsHWLBfBCLLdHBsQBG9Fn7nb9shKsdKUd0RCTc9H+NL0+jvam/J4a/H+wAnaujdU7WkV 4XjuRJWohQzkqQ2KINCjT11dKquWKHrIDji21hm7+2UL474wQXwVQntB+ITNN2b8MFNzUVZmC UzRqTr4p7HYT5+84yk/XS3iOc51ornjSVYNWtH/cl8KUbxTLmKxrej8ueDXXiSeUkdI7Jp2F9 C8H9xT5Tyu0s/jS8SdeGRPBZaybm2E1MDTXAlAU3xVjqBwTGHtY8955JUx9ZMtj7rj0sbLzEF O5hT3csOX0aeCQnPolpQoAYxL4hfwcqxfb+S2tTn86UspX2zS5u08CxVOrMih2QmL3bXFlExH +GItpsT+J32ExrxVkIgvPttP0pMM6usCnylxJ0moUaHDYy64nITYpqSLMrMzuSjQt3Od+cqg0 lbbtxxfp5L2Hm/EcUBx+kjv3Z3UMMWpJlkOAtvoJGRxpFnc7TP0rgTCTE6fFPUNEEE8WtUlyb oM6GcEl4frLnerFpxkYM7OPEFP/EzV6XTValbc7jE8p/dVKnk8AyKUhD5CpIQaJsfZX62abRe Hnt62LZOJIQW6SH5yDCE75jMXH1QZzmGtmfZNA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org By using the new linux/soc/ti/omap1-io.h header instead, compile-testing can be enabled, and a CONFIG_ARCH_MULTIPLATFORM conversion of omap1 may eventually be possible. The warning in the header file gets removed in order to allow CONFIG_COMPILE_TEST. Signed-off-by: Arnd Bergmann --- drivers/input/keyboard/Kconfig | 2 +- drivers/input/keyboard/omap-keypad.c | 1 + include/linux/platform_data/keypad-omap.h | 5 ----- 3 files changed, 2 insertions(+), 6 deletions(-) -- 2.20.0 diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index 5f1a3b3ee0fb..b454d262906b 100644 --- a/drivers/input/keyboard/Kconfig +++ b/drivers/input/keyboard/Kconfig @@ -658,7 +658,7 @@ config KEYBOARD_IPAQ_MICRO config KEYBOARD_OMAP tristate "TI OMAP keypad support" - depends on ARCH_OMAP1 + depends on ARCH_OMAP1 || COMPILE_TEST select INPUT_MATRIXKMAP help Say Y here if you want to use the OMAP keypad. diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index 5fe7a5633e33..31da8e878535 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c @@ -24,6 +24,7 @@ #include #include #include +#include #undef NEW_BOARD_LEARNING_MODE diff --git a/include/linux/platform_data/keypad-omap.h b/include/linux/platform_data/keypad-omap.h index 3e7c64c854f4..6f058eb188c4 100644 --- a/include/linux/platform_data/keypad-omap.h +++ b/include/linux/platform_data/keypad-omap.h @@ -5,11 +5,6 @@ #ifndef __KEYPAD_OMAP_H #define __KEYPAD_OMAP_H -#ifndef CONFIG_ARCH_OMAP1 -#warning Please update the board to use matrix-keypad driver -#define omap_readw(reg) 0 -#define omap_writew(val, reg) do {} while (0) -#endif #include struct omap_kp_platform_data {