From patchwork Mon Jan 25 17:07:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101097 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1480256lbb; Mon, 25 Jan 2016 09:09:53 -0800 (PST) X-Received: by 10.194.175.233 with SMTP id cd9mr19008964wjc.115.1453741793259; Mon, 25 Jan 2016 09:09:53 -0800 (PST) Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id b6si25508444wmh.122.2016.01.25.09.09.52; Mon, 25 Jan 2016 09:09:53 -0800 (PST) Received-SPF: neutral (google.com: 77.48.224.243 is neither permitted nor denied by best guess record for domain of alsa-devel-bounces@alsa-project.org) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=neutral (google.com: 77.48.224.243 is neither permitted nor denied by best guess record for domain of alsa-devel-bounces@alsa-project.org) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 16AA72605F0; Mon, 25 Jan 2016 18:09:52 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.2.4 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 91324265015; Mon, 25 Jan 2016 18:09:26 +0100 (CET) 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 906FA264FFF; Mon, 25 Jan 2016 18:09:25 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by alsa0.perex.cz (Postfix) with ESMTP id A29932605B2 for ; Mon, 25 Jan 2016 18:08:42 +0100 (CET) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue104) with ESMTPA (Nemesis) id 0LwIKE-1a2OGV0Oly-018696; Mon, 25 Jan 2016 18:08:33 +0100 From: Arnd Bergmann To: Mark Brown Date: Mon, 25 Jan 2016 18:07:33 +0100 Message-Id: <1453741678-1988125-2-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1453741678-1988125-1-git-send-email-arnd@arndb.de> References: <1453741678-1988125-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:COxSBNmG+G9k6UTkkDvTGrFpN2Ky11WXZTNd4X3FNoBKt+Xz3Il 4I6vMCfajlm/XgBdNBacuN7xf3xmBiaPu7pMjRdPh6Z0a/+NMh6CZaQyaLHdU46JSagxmkq cWOzXtyDTES6Acc0h/ljds3LbFflex5Ug2Vv+y1Nbj40e7Y4v9h0vmAGWLG9N6dDFTk+WAb fdA3gOHMSpEYo85lqPDMg== X-UI-Out-Filterresults: notjunk:1; V01:K0:6Xq4fcKV+dY=:gjuNIL3Ts8BxF8uIylT+L3 WkRbPywMW/9SB1Vpgg6D2WGSo0QjX8+OTLWthYxlixMX1ZzgdT5HC2dHz6iYJ8h8NYvM+1mkA ctPTjSPatD2uZfz1IEdPQKmaOCXbsux6dWvZEiabpPjgAvqAidyxQPnjour2eFK3wy8AjcjAO RvY0Knuyi92+7TpdSvMtfrjwZWfbHGdjLGVovmqyToTr4AHfJyub2Nsh1KVkqSmNMfBFd0L7v YTaGvz5a09YzJIXgrVeZLGBNDakfSg89oCa61B8dHKuo3s9MZ7QKLEBIXS5Z34pjFsx78q2pH 2F1LBeZmrBlYmGGtDbKTgpAJyTIdChUewUvbQE9VqAkbA4xosYZ8D8w2CaIZP4tiEDprdwnFO ujrhCw3YHu64NEnofzxLNMIrqldsIbP1JDwsoP5Gprf+JWm/p8Ig4apJ/9WcGgjGEgAOUBS0p t6AsAqmNIvfrt49I4jWZxnj5fI4XOluA5IegUySJb+GOfRUOfO6jskZc6b0MveLqqs0PbX1AY 6mD6gDUNGNEWMJr++KqmVEJhszzfTxZLDIVobvq/PpYFCVzH92OKFFpjWI7c/6PhaWxN3qqdn 1NdQV57TXO+O3CuDUDvtabAd2yR2GbGwPOWkFaFze5BOIWHkKt94BgATgmCwZWq5q3QoEHPHg nBFRIf3cJ4kXFxNKEwkQzqYPZgjebAqUsJT4Pc1iKMuvO+IRkPBM1eZr7F4AUjMIYYSo= Cc: Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org, Arnd Bergmann , Kuninori Morimoto , Sangbeom Kim , Liam Girdwood , linux-kernel@vger.kernel.org, Kukjin Kim , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH 2/2] ASoC: s3c24xx: use const snd_soc_component_driver pointer 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 An older patch to convert the API in the s3c i2s driver ended up passing a const pointer into a function that takes a non-const pointer, so we now get a warning: sound/soc/samsung/s3c2412-i2s.c: In function 's3c2412_iis_dev_probe': sound/soc/samsung/s3c2412-i2s.c:172:9: error: passing argument 3 of 's3c_i2sv2_register_component' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] However, the s3c_i2sv2_register_component() function again passes the pointer into another function taking a const, so we just need to change its prototype. Signed-off-by: Arnd Bergmann Fixes: eca3b01d0885 ("ASoC: switch over to use snd_soc_register_component() on s3c i2s") --- sound/soc/samsung/s3c-i2s-v2.c | 2 +- sound/soc/samsung/s3c-i2s-v2.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/samsung/s3c-i2s-v2.c b/sound/soc/samsung/s3c-i2s-v2.c index df65c5b494b1..b6ab3fc5789e 100644 --- a/sound/soc/samsung/s3c-i2s-v2.c +++ b/sound/soc/samsung/s3c-i2s-v2.c @@ -709,7 +709,7 @@ static int s3c2412_i2s_resume(struct snd_soc_dai *dai) #endif int s3c_i2sv2_register_component(struct device *dev, int id, - struct snd_soc_component_driver *cmp_drv, + const struct snd_soc_component_driver *cmp_drv, struct snd_soc_dai_driver *dai_drv) { struct snd_soc_dai_ops *ops = (struct snd_soc_dai_ops *)dai_drv->ops; diff --git a/sound/soc/samsung/s3c-i2s-v2.h b/sound/soc/samsung/s3c-i2s-v2.h index 90abab364b49..d0684145ed1f 100644 --- a/sound/soc/samsung/s3c-i2s-v2.h +++ b/sound/soc/samsung/s3c-i2s-v2.h @@ -101,7 +101,7 @@ extern int s3c_i2sv2_probe(struct snd_soc_dai *dai, * soc core. */ extern int s3c_i2sv2_register_component(struct device *dev, int id, - struct snd_soc_component_driver *cmp_drv, + const struct snd_soc_component_driver *cmp_drv, struct snd_soc_dai_driver *dai_drv); #endif /* __SND_SOC_S3C24XX_S3C_I2SV2_I2S_H */