From patchwork Mon Jan 5 09:18:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5565991 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 312DCBF6C3 for ; Mon, 5 Jan 2015 09:21:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C0052015A for ; Mon, 5 Jan 2015 09:21:33 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 4B997200DE for ; Mon, 5 Jan 2015 09:21:32 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6C17E265152; Mon, 5 Jan 2015 10:21:31 +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 5C208260A50; Mon, 5 Jan 2015 10:19:12 +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 AAAA4264EFA; Mon, 5 Jan 2015 10:19:10 +0100 (CET) Received: from mailout3.w1.samsung.com (mailout3.w1.samsung.com [210.118.77.13]) by alsa0.perex.cz (Postfix) with ESMTP id 70A392608EA 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 <0NHP00EM661UF760@mailout3.w1.samsung.com> for alsa-devel@alsa-project.org; Mon, 05 Jan 2015 09:22:42 +0000 (GMT) X-AuditID: cbfec7f5-b7fc86d0000066b7-e7-54aa56efb4cb Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 9F.EA.26295.FE65AA45; Mon, 05 Jan 2015 09:18:39 +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:37 +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:24 +0100 Message-id: <1420449508-10701-4-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+NgFuphluLIzCtJLcpLzFFi42I5/e/4Zd33YatCDJrmiVhcuXiIyaLv+Hxm i6kPn7BZvH5haPHtSgeTxeVdc9gs+hb+ZrLo3NXPavFy8xsmB06PDZ+b2Dx6J95i8dg56y67 x6ZVnWwe+94uY/Po27KK0WPz6WqPz5vkAjiiuGxSUnMyy1KL9O0SuDLWb//GUtDFVbFz8nzG BsZDHF2MnBwSAiYSbY96mSFsMYkL99azgdhCAksZJQ6d9u9i5AKy+5gkzs78xAqSYBMwlti8 fAlYkYjAcUaJD888QIqYBToZJU7vuApWJCwQI7Hzy36gIg4OFgFViS/Tg0HCvALuEvNeToZa Jidx8thksHJOAQ+JNzOnQi12l+ia1M0ygZF3ASPDKkbR1NLkguKk9FwjveLE3OLSvHS95Pzc TYyQEPy6g3HpMatDjAIcjEo8vB4nVoYIsSaWFVfmHmKU4GBWEuFddwsoxJuSWFmVWpQfX1Sa k1p8iJGJg1OqgZGj0zJOjnP5jjWfzdf+PbQzxqB/budCjrW1PVPSF+XtPHra8kXyRfe7Kd/T tp0LOr6g6/jiM5+m5Np9bmAw69kfxrZvzsXDm/JSxXL+uX2T+LQuc/aBd3KZcaabk+eHiWzd O8n+dXipYuwtOzVH35COfYVlW3+X2DQZXn2Y5eGUo2zOwBS8dJUSS3FGoqEWc1FxIgBLYvuL HwIAAA== Cc: Krzysztof Kozlowski , Brian Austin , Paul Handrigan Subject: [alsa-devel] [PATCH 4/8] ASoC: cs42l56: 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: Brian Austin Cc: Paul Handrigan --- sound/soc/codecs/cs42l56.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c index 2ddc7ac10ad7..cbc654fe48c7 100644 --- a/sound/soc/codecs/cs42l56.c +++ b/sound/soc/codecs/cs42l56.c @@ -1164,7 +1164,7 @@ static int cs42l56_remove(struct snd_soc_codec *codec) return 0; } -static struct snd_soc_codec_driver soc_codec_dev_cs42l56 = { +static const struct snd_soc_codec_driver soc_codec_dev_cs42l56 = { .probe = cs42l56_probe, .remove = cs42l56_remove, .set_bias_level = cs42l56_set_bias_level, @@ -1179,7 +1179,7 @@ static struct snd_soc_codec_driver soc_codec_dev_cs42l56 = { .num_controls = ARRAY_SIZE(cs42l56_snd_controls), }; -static struct regmap_config cs42l56_regmap = { +static const struct regmap_config cs42l56_regmap = { .reg_bits = 8, .val_bits = 8,