Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3052108ybp; Sun, 6 Oct 2019 03:47:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgA4fvF1gjpwMUBct996NGcgMAI6SbSrNEG3w1/rhVCdFdgL+pcjrSiy5ulX7qFPAr300i X-Received: by 2002:a17:906:b742:: with SMTP id fx2mr19431415ejb.205.1570358859937; Sun, 06 Oct 2019 03:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570358859; cv=none; d=google.com; s=arc-20160816; b=zATipvZVuYCgZopmd8fakbirzKY5mTcCah3+YFLYHzr1CslhZqHi1ICwV3xiXim0+/ luA8rbmAYgnqLUUZmdHM7St8UxjGCEcI7dW3Fi58z/y/wpCY/KtOmYVD4xbLJMSYpzUb noJz78U8RDhdzkK0qThWCjXahnVH9nDnbt+QiJfOTG5PRrvMhG9+On4ITORaxAoqxHql 0GJJkNRosSSJ3GNILNL9ieTlmh/X7MoifyOaQjJCfUNDgSi12zlYAdGM9sJdM7L543Y6 +ODmiNclr9g61HzU+NmXtGOQbjCyEKPZidaBnIs3q2xErtYIrsA2AonDag3efFovdJlU oHhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=JuzFIjll/d/PLwG4po7VYvLC6Jvgxl8Gsba+M+FdgCA=; b=lq5qvhPOhfpMYLDvXiAkbJilbAmWIt/GZ14xK+dIA4V5KzhJLpbfD7osOk7h8ZZhW+ uSMSO8TX4Sfg5mJvZMFvZZURizbrRwa76VFrjlZ5P5evf56mOnIH7zRtPNjFaG4U2TkU QuhMepdtNbDoZolTUciNIP+aUCBVObmMtZ29ykRakrqOyjROibil5bA8aTwacgYhPzPZ aV86znjgFjm8ImPs57kkD6glQ++vIiu2Dnnm3rfgZHoZ9STyA5MD1Ai+ebeyFW5VEIP+ 5oq9BkGbYVpyMdGJWGQKLz7qLlQX53rBECFpoXem84qThNp+ySPuoN8YIDBUpKN3cVW2 /bnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si5398553ejo.82.2019.10.06.03.47.13; Sun, 06 Oct 2019 03:47:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbfJFKqz (ORCPT + 99 others); Sun, 6 Oct 2019 06:46:55 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3259 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726248AbfJFKqz (ORCPT ); Sun, 6 Oct 2019 06:46:55 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 86F66DE0B78938AA0987; Sun, 6 Oct 2019 18:46:53 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Sun, 6 Oct 2019 18:46:46 +0800 From: YueHaibing To: , , , , , , , , , , , , , , , CC: , , YueHaibing Subject: [PATCH v2 -next] ASoc: tas2770: Fix build error without GPIOLIB Date: Sun, 6 Oct 2019 18:46:31 +0800 Message-ID: <20191006104631.60608-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: <20191006072241.56808-1-yuehaibing@huawei.com> References: <20191006072241.56808-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If GPIOLIB is not set, building fails: sound/soc/codecs/tas2770.c: In function tas2770_reset: sound/soc/codecs/tas2770.c:38:3: error: implicit declaration of function gpiod_set_value_cansleep; did you mean gpio_set_value_cansleep? [-Werror=implicit-function-declaration] gpiod_set_value_cansleep(tas2770->reset_gpio, 0); ^~~~~~~~~~~~~~~~~~~~~~~~ gpio_set_value_cansleep sound/soc/codecs/tas2770.c: In function tas2770_i2c_probe: sound/soc/codecs/tas2770.c:749:24: error: implicit declaration of function devm_gpiod_get_optional; did you mean devm_regulator_get_optional? [-Werror=implicit-function-declaration] tas2770->reset_gpio = devm_gpiod_get_optional(tas2770->dev, ^~~~~~~~~~~~~~~~~~~~~~~ devm_regulator_get_optional sound/soc/codecs/tas2770.c:751:13: error: GPIOD_OUT_HIGH undeclared (first use in this function); did you mean GPIOF_INIT_HIGH? GPIOD_OUT_HIGH); ^~~~~~~~~~~~~~ GPIOF_INIT_HIGH Reported-by: Hulk Robot Fixes: 1a476abc723e ("tas2770: add tas2770 smart PA kernel driver") Suggested-by: Ladislav Michl Signed-off-by: YueHaibing --- v2: Add missing include file --- sound/soc/codecs/tas2770.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/tas2770.c b/sound/soc/codecs/tas2770.c index 9da88cc..a36d0d7 100644 --- a/sound/soc/codecs/tas2770.c +++ b/sound/soc/codecs/tas2770.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include -- 2.7.4