Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2681208rwb; Mon, 7 Nov 2022 16:43:28 -0800 (PST) X-Google-Smtp-Source: AMsMyM4uZ/4yKQihMFHSGU78fVypeav0mU+VV9ke/g7OuTYfxIWjJ7aoNW0OMm1P22Xr14cdMpsT X-Received: by 2002:a17:906:6a1c:b0:7ad:e132:bb86 with SMTP id qw28-20020a1709066a1c00b007ade132bb86mr40222852ejc.408.1667868208609; Mon, 07 Nov 2022 16:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667868208; cv=none; d=google.com; s=arc-20160816; b=Bg4RWGTNPuzV4fP7UsJ5b67GPbTBc9KFvpgOtf+sNHQy6cK5QpN3tzl1KubmxKY8cH Zcce+JNb+pBWPwTv6YErmulmjcTQaAs3gJxgoAJ6Wbwyche3pFu1KLljWcSOuih5YcAw +BvnF1hXVM66PoYQEWFWxQqaxo7lByXIGEjXZb3im4lBtB8ah2asAL7fVpVI3zkbDQcV 7u/dnk2ytLRZt76XxrmYyU5qnf+9/HFDOT6OJ6kxOUtlL7obB8NA4yreBrD/Mik14NIF b7fPn6MpeLHFEvI4MZifAD1ufpG6+3aZ7yGWvbayFDWxktukg3XB9NcP/EqakVe0LnbE WVow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Yiskkd7T/nB40qx451boflfjbNugQ6mEMun4CQBvACc=; b=zh7dTpo2Bmj5C8uQYuebgrlzNQe4CTA1qN6s3MYmyjsoHcohIvPFHnl5OkSjGBnLMr fNOnKHcoB5ekysE+ZCkj8IquX62aQcve7aA7it1Q6/osY/c5ieFVbI5ZjngmnlSV0xom IaGblxvbxxalFWZWFbRJ1sM9yPIvFfEJlYWwvLUsZAIQ9q7QP/nE8k8iWY9ymBg+dBIu FMs3EGIENc0aqj9O95C+xSH/5nc2bdyyzXH/afuqZEgH0WQvknwPeTF76Cn10Zs4KfhD QBtfcaeuPcevgSL/IU8U3pq6lr49JYaIgj2Y4E2NCgw878rj1IfoPbGQf7PLUc8DrZeb BrUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="XamMSY/b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i20-20020a1709064fd400b0078cdba56108si11650204ejw.296.2022.11.07.16.43.07; Mon, 07 Nov 2022 16:43:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="XamMSY/b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229534AbiKHASo (ORCPT + 91 others); Mon, 7 Nov 2022 19:18:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232196AbiKHASm (ORCPT ); Mon, 7 Nov 2022 19:18:42 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E853C13E3D for ; Mon, 7 Nov 2022 16:18:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=Yiskkd7T/nB40qx451boflfjbNugQ6mEMun4CQBvACc=; b=XamMSY/bxGcsQbSlRp8xCGS1jP RW3oLIj2VVWyDftruFmaGgpX1D1cLOxSVhOctzPyO9EezB71Euui/vACNeoDkM4gV8OlYEYIyIkT5 T1MfGo1PX04C8YzFXTUUsY13/YOc6zC1HeUngel5Ezn1H7iK8eYZvJAeTxiwtXNewxA+Xix5Km3dN e+YIEKnDRm6ZrzesIOPNWK9XTGCRb0EHip5Cno/ZypWUHzBEHG82XfKw3NDWJlHqptaA6zgEOWRIr ML35a+egq1HTiWRBxNR6+mbt18RvR8kgCls/KJKiu5BdStfq+Es3c4mZcmr2JVxWQWAik44C51SGb JWcReBnw==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1osCK7-009o58-IY; Tue, 08 Nov 2022 00:18:40 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Srinivas Kandagatla , Banajit Goswami , Mark Brown , Liam Girdwood , alsa-devel@alsa-project.org, Jaroslav Kysela , Takashi Iwai Subject: [PATCH v2] ASoC: codecs: wsa883x: use correct header file Date: Mon, 7 Nov 2022 16:18:29 -0800 Message-Id: <20221108001829.5100-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix build errors when GPIOLIB is not set/enabled: ../sound/soc/codecs/wsa883x.c: In function 'wsa883x_probe': ../sound/soc/codecs/wsa883x.c:1394:25: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration] wsa883x->sd_n = devm_gpiod_get_optional(&pdev->dev, "powerdown", ../sound/soc/codecs/wsa883x.c:1395:49: error: 'GPIOD_FLAGS_BIT_NONEXCLUSIVE' undeclared (first use in this function) GPIOD_FLAGS_BIT_NONEXCLUSIVE); ../sound/soc/codecs/wsa883x.c:1414:9: error: implicit declaration of function 'gpiod_direction_output'; did you mean 'gpio_direction_output'? [-Werror=implicit-function-declaration] gpiod_direction_output(wsa883x->sd_n, 1); Fixes: 43b8c7dc85a1 ("ASoC: codecs: add wsa883x amplifier support") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Srinivas Kandagatla Cc: Banajit Goswami Cc: Mark Brown Cc: Liam Girdwood Cc: alsa-devel@alsa-project.org Cc: Jaroslav Kysela Cc: Takashi Iwai --- v2: add the correct header file instead of messing with GPIOLIB in Kconfig sound/soc/codecs/wsa883x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c --- a/sound/soc/codecs/wsa883x.c +++ b/sound/soc/codecs/wsa883x.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include