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: 9127659 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 8803260467 for ; Thu, 19 May 2016 13:53:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BA4A281BE for ; Thu, 19 May 2016 13:53:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70789281C6; Thu, 19 May 2016 13:53:44 +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 3CCEF281BE for ; Thu, 19 May 2016 13:53:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754988AbcESNxm (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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