From patchwork Tue Nov 8 00:18:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 16790 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2389555wru; Mon, 7 Nov 2022 16:31:54 -0800 (PST) X-Google-Smtp-Source: AMsMyM7iOjLQsG/vfHjuZpwg6r7IArJlJECiiMAKBJv5LffBVkf6y0SfbH7OkPFDcZBA/kYy2lQy X-Received: by 2002:a17:90a:cb95:b0:215:f80c:18e6 with SMTP id a21-20020a17090acb9500b00215f80c18e6mr702074pju.45.1667867514520; Mon, 07 Nov 2022 16:31:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667867514; cv=none; d=google.com; s=arc-20160816; b=FJtt9by6axNMhXMszGrlj1vFToiYDrSd1MYFSOENpOiTsAXKzOL/J4BhPXGbV3wjLe hPrqKdsyveXzJg9UXisDKKjnNvEwnOvNgmnCDtgatqYSf05jumJhuMqlvALMIvBmQ4M+ Qxn61y+78IZjGcLT6Trr3uQ90qgiW7nvu5N9Ea3L2ruug9AQwDmibH0vc0gBQzU+AeS7 2XFlR7g5xyRiJ4ZlqsQR/ikN2agMyTkgvwhE5WY4BNIyB7LwLka2QCerY8Vy+gz7Ht2T XjhtGI9cSWVblJgxpv1JOyY4N7X0iTu0QkA9c4Jmz0CUQwQEABfqjR9LUKWsWp7PH7to 90ew== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm9-20020a056a00338900b0056e6d31b27asi11112811pfb.160.2022.11.07.16.31.40; Mon, 07 Nov 2022 16:31:54 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748885846780120233?= X-GMAIL-MSGID: =?utf-8?q?1748885846780120233?= 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 Reviewed-by: Srinivas Kandagatla --- 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