From patchwork Wed May 30 21:53:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 137303 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp5837253lji; Wed, 30 May 2018 14:54:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLYV30pEtZp7nXAQJ+sgMTfy8dxufwcb4/imh0IskePDQOdLPtxqH48LBuvOdJ+Ary9sNeh X-Received: by 2002:adf:c187:: with SMTP id x7-v6mr3582219wre.84.1527717257786; Wed, 30 May 2018 14:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527717257; cv=none; d=google.com; s=arc-20160816; b=iLqlby027k+TWS7oy41P9xNhmWUkkBUFr/KxAlyBHXb8tpYhOAIigh7cZgMwmSsjwr 6seQxraLUEG35/dCQROX3XZPCUOb7pszxryEdXRYmVOavMEkmo4WrPaFMk7uD5vWC0rR 5AtmNKGlSyw5uOE6JsmT3jHTwMrL3hHYpsJWN9Xzu0k1Uu4Voh2XMvMatpxvQdZj3MRr uWnRd1W4JAUJS69xRC3FpP9AhSU/OJEtL+iaF21TcoaNeKqwK1LZ4HQIxXXCVXhU36zy LpYbcd3Zr+Ou5S/PZPwB3xnsSvp9GPwbkFixDWZeNLZ+FjJkNDWXVICezuGtMjMT2fjA Xqcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:delivered-to :arc-authentication-results; bh=Z94K5PFo059POJAonD8zqTjdwkMuKV9hoJ1o9aMHAeI=; b=EvsBW2743WLdwgVVbRvNDDESAtsVpB0/8vxkGlGq00xV/b5S8vxkPloYgcsSP25NlV OMckPnTOYT5OKA8HIW2tM415UO33suuNQhFsAqJtFjryATSDsDBxCmPqD6+Q8qJ2WBsT CKPG526ehPZKe+hSasquBDBOc9UzPpFQgcKoZ+Kp3PE8mv+u4M7KikXj3Bj67TDQ/LI3 nKWnNzbw6yFl7RUFZfDkA8cfSRwd3pRsfOPWcYhu8I0CbH/yarHNdLjj5DJkdExujFfl EbOamkNafTXJX1fmcZUt3SYkpv3oBWcyH7NOFgyyul5KTNqjRvhg2zJwWiEv7L+bu7dN 7HCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id y2-v6si14153647wmg.54.2018.05.30.14.54.17; Wed, 30 May 2018 14:54:17 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id BB74D2677D3; Wed, 30 May 2018 23:54:15 +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 84F722677D4; Wed, 30 May 2018 23:54:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=disabled version=3.4.0 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by alsa0.perex.cz (Postfix) with ESMTP id 3FAF22677D1 for ; Wed, 30 May 2018 23:54:10 +0200 (CEST) Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MKqum-1fO92n08WW-0002Bx; Wed, 30 May 2018 23:54:09 +0200 From: Arnd Bergmann To: Mark Brown Date: Wed, 30 May 2018 23:53:45 +0200 Message-Id: <20180530215407.1196429-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:Rx9WLGTgobRy7l3v6hsbyoB0dPRPxEzWrQiatF8IBzCHqQWpRNT XR6Ck4ubwHkEJI+FY+y5KBEpXfDsdhNkMcvPwKL9Agx42FNfP2jVVjU34f1kSXFiuzr2zzB vT1ycdCHjuEcIFJeYiDbmAdt20+gR3YT/m1YqgwtZzuUdEnYBJyzh/hoUp+s0psosf7/8K0 s73t2m588TNKF0/M5rWZg== X-UI-Out-Filterresults: notjunk:1; V01:K0:OwHvio7rd9I=:qY6yKCpHM+5rrBQcm+Nq7e u+SiH+iR9Q2F9gbcUyXzTVLIe6++DyLdQtStjnfVlIISp4+QxpJdk7ZAxJS6XXOpoQ1v+aCPV byWSBfqJ7baxafb2+xWFH+QYBuOCZ/2AYEkzswvDnd42nY4t4WNi2etbZrRUyjtSqJFABo9aj HRvSMu0XSmZAj8pPwFMI3hAprnPEk4hc4q6pMWrbLBzChCYloE3dKkzJEi2pDAsep6QQgg4rf FxznIgHOD+tfwBQh4sJtP1KBlYO23rqOFKM32ucFKs7psflFpTVFtF0QFt4VniZVhhY5SfDkf asvCElGlgc36BhIoJcQZF7Ubg6ZJntlqaqmvzi/3jJ9G2hS0SksRGMR7ERif/RpIxc+Ly9X8e DU2UUxU0ZEGXDR9klKOak9luL0vNhrj5q2cqSBwhNcGLnaVhNsOB8/qtohFdddNv0xMgY4yaB VLqD1zEcLDBngAvWrvGM3hznB9yLt1F6FkRW4XtG5vneceLIYpV3aUMxd17RgvRS9hjP7v1Qi J60CPmr2TwYO1YAf7aL5q76Bd8jB7JQEsv9oSiYGtYOecchcZEmTT2YDATMioolqZb/QNkoDv CTDpscUAqUFzC9FiLLmMTz7bBiwHrCuw9RiFGHLXC8RP7qXCZZFKyFFZvUmbw6kUZaCqP4lbm wglWvcuYeFxvhRuxkHsm0begb/6OFASy3qBoXqVPpus5zda83aYL+2AbENBNkqOxVKS/vkQ73 9i2S5e+uNj6ulRul Cc: alsa-devel@alsa-project.org, Arnd Bergmann , Liam Girdwood , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, =?utf-8?q?Myl=C3=A8ne_Josserand?= Subject: [alsa-devel] [PATCH] ASoC: codecs: PCM1789: include gpio/consumer.h 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org When CONFIG_GPIOLIB is disabled, this codec fails to build because gpio/consumer.h is not included implicitly. sound/soc/codecs/pcm1789.c: In function 'pcm1789_common_init': sound/soc/codecs/pcm1789.c:247:19: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_gpio_request_one'? [-Werror=implicit-function-declaration] pcm1789->reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); ^~~~~~~~~~~~~~~~~~~~~~~ Fixes: 4ae340d1be36 ("ASoC: codecs: Add support for PCM1789") Signed-off-by: Arnd Bergmann --- sound/soc/codecs/pcm1789.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/pcm1789.c b/sound/soc/codecs/pcm1789.c index 507ac9412d6c..21f15219b3ad 100644 --- a/sound/soc/codecs/pcm1789.c +++ b/sound/soc/codecs/pcm1789.c @@ -3,7 +3,7 @@ // Copyright (C) 2018 Bootlin // Mylène Josserand -#include +#include #include #include