From patchwork Wed Oct 10 08:37:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10634185 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B1A6446E4 for ; Wed, 10 Oct 2018 08:38:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EBFC295E0 for ; Wed, 10 Oct 2018 08:38:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 501E3295EA; Wed, 10 Oct 2018 08:38:09 +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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A08C295E0 for ; Wed, 10 Oct 2018 08:38:08 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 3F12D2678F8; Wed, 10 Oct 2018 10:38:06 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id BCA632678FB; Wed, 10 Oct 2018 10:38:03 +0200 (CEST) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) by alsa0.perex.cz (Postfix) with ESMTP id D8CB62678D9 for ; Wed, 10 Oct 2018 10:38:01 +0200 (CEST) Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1M5gAG-1g45CM05T0-007FAR; Wed, 10 Oct 2018 10:38:00 +0200 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1M5gAG-1g45CM05T0-007FAR; Wed, 10 Oct 2018 10:38:00 +0200 From: Arnd Bergmann To: Mark Brown Date: Wed, 10 Oct 2018 10:37:13 +0200 Message-Id: <20181010083758.2874864-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:Qfp5pR79lWCJfM7fzvmyq3zfD5sS62VxeRjIUGvcmhXMSJz3wMx OEyKQStrCCY6Wcc8Kdlliv4shBj00DvvvT+UZMCxlCck0yS1YDG8NeOsumTrmi9gwCn9cuQ 1U6KISHonGpf8IFfxdFhQXi7FrTiTSubIFI6sBjdy63t9+9zBbp/H+WDEnQ/BXR998erYxN bSkUd1v8j3zxIljVfVNZA== X-UI-Out-Filterresults: notjunk:1;V01:K0:mDyJl6/+grM=:lb6ZdQPw7JjdTzftFf5dAS y/Ia+wXBcsfgcRUsZxZuvnKhc9osF1BNB4qEhUZ5UYovkiSUAydwxmyKCWiAA1mxLQn859PsP I0MvTQayK78uASBaHW52JtEIUVF6wXZGviECkGv1vN8hj7QlxGr3xgqCMOd8CmuIN4YmGGunc 6K1nso9ELBtzfQyjm6iB48d25Vs5YGyYsSvh+sIIlFHtfh4ycnfsdv4Rl5f1cWU8RElhJreol VYDC4siKTOoJIHJncVYqzwsComQdnLn4FVhSEooZobmVa4fTqHcy1gvsoFJ6rwdtiKzUguNaq BReQEdeBMuSJv7IIeTnRrDSQ1r1qrW9t+nZQcH8Qp4Ht0unheXYdxVJF0dPHWyOJ34rXTj/YB CiBDl6idskWi2z+C6Z2P1vsxtUPheTQJNhbZRoQIN3xT9Yai6s3HCxYG4cWfMA3hT94ek2SiI k0Ins8l0fTKqDKKUowf54bpHJl1O+QaJ6yseWWyKgGwgflOuwmHVrNdkDSFuXHoRNhMsQ3276 x+5m1rw5kIT3Xd3CZPhPyhPBNL1j+5p8cg+nXt9HpvFmAbRX+m7Zq3yqEsKQnzGISlFjxdtNv +88N99nTC4Kjqx1YamEtdWhjsSNKjMAi/4X6kZH8W1i9bHiAG04NQhvREvgrTm91+zn9x9k5B xi79zf7dgKf0BcGJ2T2ZVrMVclDDYF6LiDRFL6CKDMMk1wKvdm5mcZWyxqSXhKiuBtwE= Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Liam Girdwood , Arnd Bergmann , Marco Felsch Subject: [alsa-devel] [PATCH] ASoC: max98988: add I2C dependency X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP max98988 only builds with I2C support enabled, otherwise we get a build error: sound/soc/codecs/max98088.c:1789:1: error: data definition has no type or storage class [-Werror] module_i2c_driver(max98088_i2c_driver); ^~~~~~~~~~~~~~~~~ sound/soc/codecs/max98088.c:1789:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int] sound/soc/codecs/max98088.c:1789:1: error: parameter names (without types) in function declaration [-Werror] sound/soc/codecs/max98088.c:1780:26: error: 'max98088_i2c_driver' defined but not used [-Werror=unused-variable] Fixes: 24ae67c58250 ("ASoC: max98988: make it selectable") Signed-off-by: Arnd Bergmann Reviewed-by: Marco Felsch --- sound/soc/codecs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 3c6bd6019b92..774d38310875 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -641,6 +641,7 @@ config SND_SOC_LM49453 config SND_SOC_MAX98088 tristate "Maxim MAX98088/9 Low-Power, Stereo Audio Codec" + depends on I2C config SND_SOC_MAX98090 tristate