From patchwork Mon Jan 5 09:18:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5566031 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 392DBBF6C3 for ; Mon, 5 Jan 2015 09:22:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 75DFA20166 for ; Mon, 5 Jan 2015 09:22:35 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 414C9200DE for ; Mon, 5 Jan 2015 09:22:34 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5E8A1265200; Mon, 5 Jan 2015 10:22:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,RCVD_IN_SBL, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 6D303264F37; Mon, 5 Jan 2015 10:19:14 +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 1341D260A5B; Mon, 5 Jan 2015 10:19:11 +0100 (CET) Received: from mailout3.w1.samsung.com (mailout3.w1.samsung.com [210.118.77.13]) by alsa0.perex.cz (Postfix) with ESMTP id 8E840260A50 for ; Mon, 5 Jan 2015 10:18:49 +0100 (CET) Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NHP00MG861U4F60@mailout3.w1.samsung.com> for alsa-devel@alsa-project.org; Mon, 05 Jan 2015 09:22:42 +0000 (GMT) X-AuditID: cbfec7f5-b7fc86d0000066b7-ec-54aa56f0d369 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 11.FA.26295.0F65AA45; Mon, 05 Jan 2015 09:18:40 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NHP009VW5UXPJ80@eusync1.samsung.com>; Mon, 05 Jan 2015 09:18:38 +0000 (GMT) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Mon, 05 Jan 2015 10:18:26 +0100 Message-id: <1420449508-10701-6-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1420449508-10701-1-git-send-email-k.kozlowski@samsung.com> References: <1420449508-10701-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgluLIzCtJLcpLzFFi42I5/e/4Zd0PYatCDOY85La4cvEQk8XUh0/Y LF6/MLT4dqWDyeLyrjlsFsvf/mez6NzVz2rxcvMbJgcOjw2fm9g8ds66y+6xaVUnm8fLib/Z PPa9Xcbm0bdlFaPH5tPVHp83yQVwRHHZpKTmZJalFunbJXBlnJ+4nLXgNGdF486DLA2MnRxd jJwcEgImEivm/WeEsMUkLtxbz9bFyMUhJLCUUeLE7PUsEE4fk8T+VcdYQarYBIwlNi9fwgZi iwgcZ5T48MwDxGYWiJC4ueQBC4gtLBAt8f3LXjCbRUBV4tLe2WC9vALuEq9a5rNAbJOTOHls MlicU8BD4s3MqWAzhYBquiZ1s0xg5F3AyLCKUTS1NLmgOCk910ivODG3uDQvXS85P3cTIyT0 vu5gXHrM6hCjAAejEg+vx4mVIUKsiWXFlbmHGCU4mJVEeNfdAgrxpiRWVqUW5ccXleakFh9i ZOLglGpgvL3tz81b1062897O91knwZ0u+3mflFrqnBTLOoFJH/y7V0vnCq46Lz2zbO0CH9sH /lG3l0wNO3xx1/e048y/ixqf1j1as7FyV+T26xMaHxtdDmRR3mZW/L1/wucbFprdzLaLDrhz OipfecWtHpd+TewVG+8LgVXtSzXP2248lcHkmD09Ua/1hxJLcUaioRZzUXEiAAoFatYbAgAA Cc: Krzysztof Kozlowski , patches@opensource.wolfsonmicro.com Subject: [alsa-devel] [PATCH 6/8] ASoC: wm8804: Constify struct regmap_config and snd_soc_codec_driver 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 The regmap_config struct may be const because it is not modified by the driver and regmap_init() accepts pointer to const. Make struct snd_soc_codec_driver const as well (snd_soc_register_codec() accepts pointer to const). Signed-off-by: Krzysztof Kozlowski Cc: patches@opensource.wolfsonmicro.com Acked-by: Charles Keepax --- sound/soc/codecs/wm8804.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c index 1315f7642503..b2b0e68f707e 100644 --- a/sound/soc/codecs/wm8804.c +++ b/sound/soc/codecs/wm8804.c @@ -648,7 +648,7 @@ static struct snd_soc_dai_driver wm8804_dai = { .symmetric_rates = 1 }; -static struct snd_soc_codec_driver soc_codec_dev_wm8804 = { +static const struct snd_soc_codec_driver soc_codec_dev_wm8804 = { .probe = wm8804_probe, .remove = wm8804_remove, .set_bias_level = wm8804_set_bias_level, @@ -664,7 +664,7 @@ static const struct of_device_id wm8804_of_match[] = { }; MODULE_DEVICE_TABLE(of, wm8804_of_match); -static struct regmap_config wm8804_regmap_config = { +static const struct regmap_config wm8804_regmap_config = { .reg_bits = 8, .val_bits = 8,