Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3091950rwb; Mon, 15 Aug 2022 17:56:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR4A+Z52eWB70qa66JYcAZzJEHY0l3gS5gVh9QB2D0BeWApgr3mLKHw98LVsGmV5ZPZTx5/4 X-Received: by 2002:a17:907:724f:b0:731:9ec:10fc with SMTP id ds15-20020a170907724f00b0073109ec10fcmr11996278ejc.427.1660611360256; Mon, 15 Aug 2022 17:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611360; cv=none; d=google.com; s=arc-20160816; b=0TsXSkGaDZqvQCFSApS1383z7uMXfpaaDWhTxjOEkYlZQYkvhtU9jLibO5nzkCVsgb BMAJIZI7V1V9tEIKzoj5CNhtKu8vXdulIYVZeHODJPujRkrExwjF+VRk3sAfjQKSRkTX oPBPg+EOxURdeVQLW8s56Yu1HyT6jEgJehKSCsQvJIRvH56ugwj+1G+rtQKsal/jpbix nKr0nm4noiRW/wL/iRvzbX/XI1tN7fQyjst1r8004WOLqWlY52sK3llJM7VGr6vaxC5f 8cBTnPiAgdvM2mFaDWjPvdLd6Pry/g+c9bmb7WgSJRE9iNmy5Z+hgInGG/kF7Avhum1U rBHA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=i/4eIgvPdEisELCDVY30LpcNb+RmlavLRY9APmPJIfk=; b=r/VBi5I4MIDECiN+zZNB4+5QQGk/5WFX/VADshqKmDDpWzFHtV45z/hnb46CRYMnEv 3mYgpduJlUcnJ+fptfjRmeQLh19oWMDUQXEraWlvVty0wgaxvyr2rpmuUYW03V+9dbnP 9ofbvVwW8wwHrtZShSJ79Gl57Yr0mg7Ux7ACEhcy9iBrUXTKFqYiwOuyb5IjFXMdnCYG ZRUI80pG60sL9kfu48qDKKVONNFBXhIVbxdN8IiJ8uT/pG+TIV7gDhAmv00f+5scG5iT BELDAlTzF0ImuMzpQxDB5X+dzgkVOohybJo5xsgg+JkPl3Ku82snzwRAblC1mYZOrBPq YpwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uSb5nlUV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a1709065d0900b00732f76a97a0si9263957ejt.0.2022.08.15.17.55.34; Mon, 15 Aug 2022 17:56:00 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=uSb5nlUV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346319AbiHPAhx (ORCPT + 99 others); Mon, 15 Aug 2022 20:37:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350640AbiHPAgJ (ORCPT ); Mon, 15 Aug 2022 20:36:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB8841894DC; Mon, 15 Aug 2022 13:37:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A724BB8114A; Mon, 15 Aug 2022 20:37:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C57A8C433C1; Mon, 15 Aug 2022 20:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595852; bh=I2Uxh4EvJCSOE07CYqNhIoCNwu9Uw3Ub0lGO2+m236M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uSb5nlUVSs7UeIz8797dC0ymrYnSL+xFQsLEacYeukABo0MXHJ4J7Pg6dFAyvUaF5 +bUZa8I1QUibV/lfyiG3xKd8prt/jE6VBf8WP6SB3/0YF4w08BkHzTfN0i0It05yxd tUxJE2orGOTVvjDOj17dxzodFRfkPILPR/HY1kW8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Steve Lee , Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, Sasha Levin Subject: [PATCH 5.19 0894/1157] ASoC: max98390: use linux/gpio/consumer.h to fix build Date: Mon, 15 Aug 2022 20:04:10 +0200 Message-Id: <20220815180515.194039678@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Randy Dunlap [ Upstream commit aa7407f807b250eca7697e5fe9a699bc6c2fab71 ] Change the header file to fix build errors in max98390.c: ../sound/soc/codecs/max98390.c: In function 'max98390_i2c_probe': ../sound/soc/codecs/max98390.c:1076:22: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration] 1076 | reset_gpio = devm_gpiod_get_optional(&i2c->dev, ../sound/soc/codecs/max98390.c:1077:55: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function); did you mean 'GPIOF_INIT_HIGH'? 1077 | "reset", GPIOD_OUT_HIGH); ../sound/soc/codecs/max98390.c:1077:55: note: each undeclared identifier is reported only once for each function it appears in ../sound/soc/codecs/max98390.c:1083:17: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? [-Werror=implicit-function-declaration] 1083 | gpiod_set_value_cansleep(reset_gpio, 0); Fixes: 397ff0249606 ("ASoC: max98390: Add reset gpio control") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Steve Lee Cc: Mark Brown Cc: Liam Girdwood Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-devel@alsa-project.org Link: https://lore.kernel.org/r/20220605163123.23537-1-rdunlap@infradead.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/max98390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98390.c b/sound/soc/codecs/max98390.c index 2a6b1648c884..d83f81d9ff4e 100644 --- a/sound/soc/codecs/max98390.c +++ b/sound/soc/codecs/max98390.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include -- 2.35.1