From patchwork Mon Jun 13 15:39:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9173453 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5DFF66075D for ; Mon, 13 Jun 2016 15:41:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C6D525EF7 for ; Mon, 13 Jun 2016 15:41:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CC8C27AC2; Mon, 13 Jun 2016 15:41:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6AACD25EF7 for ; Mon, 13 Jun 2016 15:40:59 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2E5C226575E; Mon, 13 Jun 2016 17:40:58 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 0FC11266606; Mon, 13 Jun 2016 17:40:18 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2C712266580; Mon, 13 Jun 2016 17:40:16 +0200 (CEST) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) by alsa0.perex.cz (Postfix) with ESMTP id 51563265471 for ; Mon, 13 Jun 2016 17:39:57 +0200 (CEST) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0MQew1-1b0dSH3Bt7-00U0zJ; Mon, 13 Jun 2016 17:39:52 +0200 From: Arnd Bergmann To: Mark Brown Date: Mon, 13 Jun 2016 17:39:44 +0200 Message-Id: <1465832422-2998958-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1465832422-2998958-1-git-send-email-arnd@arndb.de> References: <1465832422-2998958-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:M4LuOWl6tlsPDEXpdr3+FbgPl1W4IzmlmsCyePXAhw+bznsTTIY w3QaUqMM/gSXvX4GiGSPcfe12Cb7k1paCC2o6Li++MQ89r2Kmd2GZs4U+N6vCCspWhu9MIm oVuxJ94w1jzpOiM5RGV3mkakhSzycPj/qLG2ubKya+0NLZkXk34Rfon6YK8vpZkW3/cmXxm BN28xyhcXQpPu16SMt5+A== X-UI-Out-Filterresults: notjunk:1; V01:K0:Ih2QCShiI58=:Xva3IBXtxtYTWBY5gSyawB UMOti9fjXuFg6br/MBvzLMmT1OcNoKUekEprixSVO/78Nc1EUgC2pbF0hArGr3WmUeoFBajnK 3faK+HQW3yZlyj8Z0DknO6Ri/fsl1pDS7vreMgb8vFsJe+ihEIHPXJ52ZSLuMU9x24UqUqUu4 8S6odtu05xgz0wWOGqthzbZCeVnKkrt86/FRL1GklC49WVxcyYxuATqZ7hH3gBMorV4oBunIq WSo+SiBMSRhtDaIRdFH/eQrU/zZAEqH04S1hRWP7PQsdzcyFWSAjWJv8I5liWVebct/xTh43m 7j0Boo1P/cbATI8OuKcSQZ1BVldWqnFjsyAtNBKRlFj4hsbmt5/2HcuQKv9+yumrRdAQVigXF cPPHv++ymB7CChwErp46LnYXODVw//h62R0V6TQMmFtz+uPfHqrf/V/4X9QordHsAG0W1jAfk h12seiHYq5UjjqH5DG88TIiB74HkKGp0myXiyBr/f2oX5yW28I1tzB6OzkEHVulPwgSAsmGYF ceRZduaBvqK5DTq6d+K+ElSzABzjGrERrl5fkd3F2RzrODxEF7uJ4yrxe000bvLx6aBh5losC brBNzW7pQlWSQa6vItLkB1mwqt881wGn426imfVJ7DMmatKLkrKy69DyrHgiQZYTEnStbqeBP GYEcmJJEesMDXkLU620k26FuWERWLfdaO7ic9dD9ZewbxxUQ1sXfRSQFCODB0FteOqms= Cc: Brian Austin , Arnd Bergmann , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Paul Handrigan , Liam Girdwood , Nicolin Chen Subject: [alsa-devel] [PATCH] ASoC: cs53l30: include gpio/consumer.h X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP When GPIOLIB is disabled, we don't see the declarations from gpio/consumer.h, so we have to include the header explicitly to avoid this build error: sound/soc/codecs/cs53l30.c: In function 'cs53l30_i2c_probe': sound/soc/codecs/cs53l30.c:931:24: error: implicit declaration of function 'devm_gpiod_get_optional' [-Werror=implicit-function-declaration] cs53l30->reset_gpio = devm_gpiod_get_optional(dev, reset, ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/codecs/cs53l30.c:932:13: error: 'GPIOD_OUT_LOW' undeclared (first use in this function) GPIOD_OUT_LOW); ^~~~~~~~~~~~~ sound/soc/codecs/cs53l30.c:932:13: note: each undeclared identifier is reported only once for each function it appears in sound/soc/codecs/cs53l30.c:939:3: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror=implicit-function-declaration] gpiod_set_value_cansleep(cs53l30->reset_gpio, 1); Signed-off-by: Arnd Bergmann --- sound/soc/codecs/cs53l30.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c index ac90dd79857e..aa511e70099e 100644 --- a/sound/soc/codecs/cs53l30.c +++ b/sound/soc/codecs/cs53l30.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include