Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2918175ybp; Sun, 6 Oct 2019 00:25:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyx9n5TZ44ojd80el2X95Bj8qDr8cClFAUTmNti3HsnbgG7PPGoOBcW/+lgTZu7qi9Q/ax7 X-Received: by 2002:a17:906:b34c:: with SMTP id cd12mr19110990ejb.48.1570346740201; Sun, 06 Oct 2019 00:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570346740; cv=none; d=google.com; s=arc-20160816; b=uNG8j9Y4Hb2FIMTJDyQNj0gUXgn3wThaUr/oyhOXcFp/tg7FG5tr8mGLyGU32BLwUL q/tkm83pJtCQUcfdls2DJxRzIT+BkliShWIpf/R3Y6pVmEVbpBvclXlJTNhNq8Xs2hY3 e8oD6YNY4LuWTCIZuHNxkebrVUCUc1fCekQ5V/yup+CMQcR/oozd8o5uwPeHDWecK+tA SGogaAuIg2aYWCjo8hfkHu12/jEkgfFy03UiYS5AvFLjbqkZz6fn/SO2RBGqPvSVqhJh JN2YSFVRSPj0swpltTewqF7mvUfcyTOLrZlxOSmNB7HgAguTq47I0zJJIp2/bEEYKWSU tQbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=MR46ianQwGWwfVVUx81JRorBk9/6KShN8HsBVt5s1u0=; b=xxvnF+Btga3TMo7pGlOYtjkSXOCHPb59G3GNS+7wEWSVeCFB2slqZZFF/8KVe0grwW YDCJSTdhsDM7m4loFOV/wqszGJ9e3GxR9nKXXRdBrXQOfBJc7/k7DxYfaJE7t8Q3z186 pH66xljPU1WPE91bDBe9xG++KTd2q8fRGyPNhPYMhTFtqlYWXg35/xoN5zhM6echP34o 3ji5ITSEPM0jjWztXrQOW7rm2aK64bcxBGJFKUrvtjzZGVQX2p1vrhFqjDrLMg30Osg2 vFO4qgyv394gkDkXJwONjHD7Ly8+YbcKbI0LH45VHYv/eeijvrczidttd0KA8zLexIlq mFHA== 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 o7si6669292edc.342.2019.10.06.00.25.14; Sun, 06 Oct 2019 00:25:40 -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 S1726270AbfJFHXB (ORCPT + 99 others); Sun, 6 Oct 2019 03:23:01 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:50972 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726198AbfJFHXB (ORCPT ); Sun, 6 Oct 2019 03:23:01 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 90AA93774B1F60D3DFA7; Sun, 6 Oct 2019 15:22:58 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Sun, 6 Oct 2019 15:22:47 +0800 From: YueHaibing To: , , , , , , , , , , , , , , CC: , , YueHaibing Subject: [PATCH -next] ASoc: tas2770: Fix build error without GPIOLIB Date: Sun, 6 Oct 2019 15:22:41 +0800 Message-ID: <20191006072241.56808-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 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") Signed-off-by: YueHaibing --- sound/soc/codecs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index bcac957..d639f17 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -1108,6 +1108,7 @@ config SND_SOC_TAS2552 config SND_SOC_TAS2770 tristate "Texas Instruments TAS2770 speaker amplifier" depends on I2C + select GPIOLIB config SND_SOC_TAS5086 tristate "Texas Instruments TAS5086 speaker amplifier" -- 2.7.4