Message ID | 20221108001829.5100-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;hjfbswb@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, kernel test robot <lkp@intel.com>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Banajit Goswami <bgoswami@quicinc.com>, Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>, alsa-devel@alsa-project.org, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com> 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: <linux-kernel.vger.kernel.org> 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?= |
Series |
[v2] ASoC: codecs: wsa883x: use correct header file
|
|
Commit Message
Randy Dunlap
Nov. 8, 2022, 12:18 a.m. UTC
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 <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Banajit Goswami <bgoswami@quicinc.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: alsa-devel@alsa-project.org
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
---
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(-)
Comments
On 08/11/2022 00:18, Randy Dunlap wrote: > 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 <rdunlap@infradead.org> > Reported-by: kernel test robot <lkp@intel.com> > Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> > Cc: Banajit Goswami <bgoswami@quicinc.com> > Cc: Mark Brown <broonie@kernel.org> > Cc: Liam Girdwood <lgirdwood@gmail.com> > Cc: alsa-devel@alsa-project.org > Cc: Jaroslav Kysela <perex@perex.cz> > Cc: Takashi Iwai <tiwai@suse.com> > --- Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> > 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 <linux/debugfs.h> > #include <linux/delay.h> > #include <linux/device.h> > -#include <linux/gpio.h> > +#include <linux/gpio/consumer.h> > #include <linux/init.h> > #include <linux/kernel.h> > #include <linux/module.h>
On Mon, 7 Nov 2022 16:18:29 -0800, Randy Dunlap wrote: > 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); > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: codecs: wsa883x: use correct header file commit: 5f52ceddc40cd61b1dd2ecf735624deaf05f779f All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
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 <linux/debugfs.h> #include <linux/delay.h> #include <linux/device.h> -#include <linux/gpio.h> +#include <linux/gpio/consumer.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h>