From patchwork Mon Jan 5 09:18:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5566001 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2B4119F2ED for ; Mon, 5 Jan 2015 09:22:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5DB6F20165 for ; Mon, 5 Jan 2015 09:22:00 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id F22592015A for ; Mon, 5 Jan 2015 09:21:58 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5A6CC2651A8; Mon, 5 Jan 2015 10:21:57 +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 1EE55264F02; Mon, 5 Jan 2015 10:19:13 +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 D81D8264EE5; Mon, 5 Jan 2015 10:19:10 +0100 (CET) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by alsa0.perex.cz (Postfix) with ESMTP id 8F36B260A5B for ; Mon, 5 Jan 2015 10:18:49 +0100 (CET) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NHP0059E61YQS80@mailout1.w1.samsung.com> for alsa-devel@alsa-project.org; Mon, 05 Jan 2015 09:22:46 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-e8-54aa56ee9347 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id FA.6E.07834.EE65AA45; Mon, 05 Jan 2015 09:18:38 +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:25 +0100 Message-id: <1420449508-10701-5-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+NgFuplluLIzCtJLcpLzFFi42I5/e/4Zd13YatCDGa8krS4cvEQk0Xf8fnM FlMfPmGzeP3C0OLblQ4mi8u75rBZ9C38zWTRuauf1eLl5jdMDpweGz43sXn0TrzF4rFz1l12 j02rOtk89r1dxubRt2UVo8fm09UenzfJBXBEcdmkpOZklqUW6dslcGVM2d7OVtDJVfH453P2 BsaDHF2MnBwSAiYSP5f3s0LYYhIX7q1n62Lk4hASWMooceDhURYIp49JYv+qY2BVbALGEpuX L2EDsUUEjjNKfHjmAVLELNDJKHF6x1WgIg4OYYEYid69oSA1LAKqEpd+z2AHsXkF3CX+/L7B DLFNTuLksclgMzkFPCTezJwKNlMIqKZrUjfLBEbeBYwMqxhFU0uTC4qT0nMN9YoTc4tL89L1 kvNzNzFCgvDLDsbFx6wOMQpwMCrx8HqcWBkixJpYVlyZe4hRgoNZSYR33S2gEG9KYmVValF+ fFFpTmrxIUYmDk6pBsY0Dgb5LcJvyk49fc95rSN3elzXlaUs5ksqjBV5D2zoF5UXfDl746so 3u/+r78+0H1sLHGp9e3aoyLtj89vcnS5dFftC6vByvnsKY0/lb2tFsza/WzCNN6QLPGKt969 P51Csg5vyNZwUD/73bisfMr6ky5mbzrvbihbGbdU/QnjTOZJstnSEy2VWIozEg21mIuKEwGo qY2wIAIAAA== Cc: Krzysztof Kozlowski , Brian Austin , Paul Handrigan Subject: [alsa-devel] [PATCH 5/8] ASoC: cs42l73: 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/cs42l73.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c index 7c55537c69cf..8ecedba79606 100644 --- a/sound/soc/codecs/cs42l73.c +++ b/sound/soc/codecs/cs42l73.c @@ -1347,7 +1347,7 @@ static int cs42l73_probe(struct snd_soc_codec *codec) return 0; } -static struct snd_soc_codec_driver soc_codec_dev_cs42l73 = { +static const struct snd_soc_codec_driver soc_codec_dev_cs42l73 = { .probe = cs42l73_probe, .set_bias_level = cs42l73_set_bias_level, .suspend_bias_off = true, @@ -1361,7 +1361,7 @@ static struct snd_soc_codec_driver soc_codec_dev_cs42l73 = { .num_controls = ARRAY_SIZE(cs42l73_snd_controls), }; -static struct regmap_config cs42l73_regmap = { +static const struct regmap_config cs42l73_regmap = { .reg_bits = 8, .val_bits = 8,