From patchwork Thu May 19 13:52:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102313 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp3216055qge; Thu, 19 May 2016 06:53:43 -0700 (PDT) X-Received: by 10.66.249.228 with SMTP id yx4mr19850038pac.29.1463666023355; Thu, 19 May 2016 06:53:43 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r82si20205935pfa.239.2016.05.19.06.53.43; Thu, 19 May 2016 06:53:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-input-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-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754988AbcESNxm (ORCPT + 1 other); Thu, 19 May 2016 09:53:42 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:55505 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754986AbcESNxl (ORCPT ); Thu, 19 May 2016 09:53:41 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0Lucy0-1blDZQ2mwa-00zjca; Thu, 19 May 2016 15:53:36 +0200 From: Arnd Bergmann To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Daniel Hung-yu Wu Subject: [PATCH 1/2] Input: atmel captouch depends on i2c Date: Thu, 19 May 2016 15:52:24 +0200 Message-Id: <1463665954-3898044-2-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1463665954-3898044-1-git-send-email-arnd@arndb.de> References: <1463665954-3898044-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:gDXQpwVJIy6fTXhUIdGsPWrKLNdxoptpOR+OEMrIZcbrbv4KFe2 Orftnocu1TcnCjFqPfTD8nhgZc/wWpQmyXeeuTDy7cVq+y9vDcjenJfgfnKTiGCx2swGPF2 YAJbfJYSh/anbyNWs6BGZBNs8yHuSKyYRa36EWdbVTSTr7m06BpRZSmP8Us778ErGn6W9sG 0Vub/OJD0TYPQQL/ys1GA== X-UI-Out-Filterresults: notjunk:1; V01:K0:VRZ1o6Xi0qM=:BZrQ5VugNEY182LgHjcwOu JHcscnnPQMgmKElxUeXDuLxIPL/pOIYQ38rYjyr1B00rP/ASTCyO4NFTdQT5cOxhTSzF0bU0g OkoxjtM5AQWHc2iyquGUOS9VAnkeSDoMUkPyL+QUQpyTDyPWBzW8nxb5Q4w/mbRpK+GOcDvTZ l/mTleF1xHRY0JFVHyscMWy7iOK83V0W4rk8I0HssVodk0lmZzwtcqpkl6sC2yqoLMTgROjMW BHp3RhkUdgwh/Pus70W4FqNd/IA0FTGf6FCI57Cq/ArIMoTDnngJtFS7TUhwb+zmvJOJoLaym 3aIiS2B2jTuD3TPiBe/Arivm03D1dXBNCi3maedMIvqWlOzBMbU6/e40vwCFYX0JCz+ulXJal LINTyODOgv4Ecii808LlmUdvTxN4d9H67Jo2j1BNaVCayguoO4IT2uAEYRJr0/+M90hrY2XW+ rBEFMUhOkixgzXw462CG8qVmCuR5F83bJnDS2zjMCqWcwb1jx3AmLUQsV8XheApjd7qsF3rdF nYpIsP4gSFwLa6NB66UVoDQhPCsoa2ukSIvA7MiI/W8NWcObIHRP1almixgkpvxLcZCBHS4ur qKhee88MrACqYGUbz/yGJRgYX0Zg3Li6qgfd3+dDNG8ebxrKLbzTzq/Yw37VHcJgm550yl6ti 6mVc6XDnTwXK8nu7yO/BtYMdHnp73j0zMkxmSr4Bl86bGls43q2YAWF+WT5vm6mC3pYg= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The newly added Atmal captouch driver fails to build when CONFIG_I2C is disabled: drivers/input/misc/atmel_captouch.c: In function 'atmel_read': drivers/input/misc/atmel_captouch.c:115:8: error: implicit declaration of function 'i2c_transfer' [-Werror=implicit-function-declaration] This adds an explicit Kconfig dependency to prevent the broken configuration. Signed-off-by: Arnd Bergmann Fixes: b06d43f7a3db ("Input: add Atmel Captouch Button driver") --- drivers/input/misc/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig index 9c3dfe79d4d4..27d6da0e354a 100644 --- a/drivers/input/misc/Kconfig +++ b/drivers/input/misc/Kconfig @@ -85,6 +85,7 @@ config INPUT_ARIZONA_HAPTICS config INPUT_ATMEL_CAPTOUCH tristate "Atmel Capacitive Touch Button Driver" depends on OF || COMPILE_TEST + depends on I2C help Say Y here if an Atmel Capacitive Touch Button device which implements "captouch" protocol is connected to I2C bus. Typically From patchwork Thu May 19 13:52:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102312 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp3216432qge; Thu, 19 May 2016 06:54:33 -0700 (PDT) X-Received: by 10.66.65.109 with SMTP id w13mr19695450pas.142.1463666073421; Thu, 19 May 2016 06:54:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pk16si15245979pab.73.2016.05.19.06.54.33; Thu, 19 May 2016 06:54:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-input-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-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932432AbcESNyc (ORCPT + 1 other); Thu, 19 May 2016 09:54:32 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:56354 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932419AbcESNyb (ORCPT ); Thu, 19 May 2016 09:54:31 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0McnTN-1bKeAv08LB-00HuXl; Thu, 19 May 2016 15:54:28 +0200 From: Arnd Bergmann To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 2/2] Input: migor-ts: mark PM functions as __maybe_unused Date: Thu, 19 May 2016 15:52:25 +0200 Message-Id: <1463665954-3898044-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1463665954-3898044-1-git-send-email-arnd@arndb.de> References: <1463665954-3898044-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:KbN0lpJN9J8Z0mttBpMJwRNjWZPgedBQVFKNahSUIVm2GHQPQLd 8+QdWQfGiAXWHeAIHZiHXDYulx/G6exnX1yxUbVf2XB+l07/RPwMk4Xv425w5IZ8zv3gqoM fg5g7z3r3HIivSBLuh1PoMo3LfOLX2x0CGoLBV3orKiHtYHPS/qkgECFLn/uYMEtCJqn3uW 7kK9QtiI8TmKSCaVsd8Rg== X-UI-Out-Filterresults: notjunk:1; V01:K0:mMqlCpvjj0U=:4six0KldSHzbzSIdNEss9l 8PNSXRFqVJjxosY0EiIfgxKxawnY54fLVRVwmYjIAl+fy9zLt0TC6h855P4RT1HJw7CCrlgSN +cmgM1IP7CkO5xcLHOOcrI6Sy7hW4gQPE3zzU7Xu2rQcyrC4Sdk/P9Xys8IE/gpXYvbWOYgQa n+M3dwXfjLhyF4fE2N0qKq69NcamMqQbi1RoMp8S1wGTyAAEr5n6M0Y1GiXKLWtcaJI6AD5Lq hZkXiNHZqbHukguBvY9h2ZFOo3/uK+XGzFkK79eoAX4sZJd1FFEtq+ECZLqI4Sat1zZvFpxlD snZOar26assPVS+QzziE3kEXbW30dIC2iuTCmItTsGpfEIzqkQc6buEnrdutKmnfuUrq+A/fa K8AipuEhcZ5QgJw4h+qUxwZO6pNeHlOmAteQt2NqYZvYAnZPQBegMKULsT7e09FrUNkvZjwgG 0lGra2NuF7k1NuS6qsi7+NV9B1HbzNz9lQsjvaRcnkmvFCU5Vnqld9D5jOEQXEPPk7p7Jppwt 2s4fbwklQp6ZFX8miEFfzqZmvDqcKc4VMTBXHx6u7ysLAx4Xesba3877dUy5xlUQxV7UaskYg izdpNUuEuyKJGBuGBBgxRIdX4b7JCdVbcQ6oEbGvIsJZD3NkuA8H+U0YRcR0L4PFWuAHCHD0x Jn8wV3kJys9PRoe+M4aS642AeonFgHbKZi7auYyM9VcIPF1mqgeyKwBJ6QHp2va6n2bI= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The migor touchscreen driver is now available for COMPILE_TEST, so we run into a harmless randconfig warning on ARM when CONFIG_PM is disabled: drivers/input/touchscreen/migor_ts.c:216:12: error: 'migor_ts_resume' defined but not used [-Werror=unused-function] drivers/input/touchscreen/migor_ts.c:205:12: error: 'migor_ts_suspend' defined but not used [-Werror=unused-function] This shuts up the warning by marking the two functions as __maybe_unused. We could do the same thing by adding an #ifdef, but this version is more reliable. Signed-off-by: Arnd Bergmann --- drivers/input/touchscreen/migor_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/touchscreen/migor_ts.c b/drivers/input/touchscreen/migor_ts.c index e4b92c4cae3b..02fb11985819 100644 --- a/drivers/input/touchscreen/migor_ts.c +++ b/drivers/input/touchscreen/migor_ts.c @@ -202,7 +202,7 @@ static int migor_ts_remove(struct i2c_client *client) return 0; } -static int migor_ts_suspend(struct device *dev) +static int __maybe_unused migor_ts_suspend(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct migor_ts_priv *priv = i2c_get_clientdata(client); @@ -213,7 +213,7 @@ static int migor_ts_suspend(struct device *dev) return 0; } -static int migor_ts_resume(struct device *dev) +static int __maybe_unused migor_ts_resume(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct migor_ts_priv *priv = i2c_get_clientdata(client);