From patchwork Mon Jan 5 09:18:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5565911 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 368699F2ED for ; Mon, 5 Jan 2015 09:19:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F1B42015A for ; Mon, 5 Jan 2015 09:19:21 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id F3DB6200DE for ; Mon, 5 Jan 2015 09:19:19 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3D59D260561; Mon, 5 Jan 2015 10:19:18 +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=-0.0 required=5.0 tests=BAYES_00,RCVD_IN_SBL, SUBJ_OBFU_PUNCT_MANY,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id F3656261299; Mon, 5 Jan 2015 10:18:57 +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 25FB026129B; Mon, 5 Jan 2015 10:18:56 +0100 (CET) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by alsa0.perex.cz (Postfix) with ESMTP id 3BB22260561 for ; Mon, 5 Jan 2015 10:18:48 +0100 (CET) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NHP00KC561T8U40@mailout2.w1.samsung.com> for alsa-devel@alsa-project.org; Mon, 05 Jan 2015 09:22:41 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-df-54aa56ec7c69 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 78.6E.07834.CE65AA45; Mon, 05 Jan 2015 09:18:36 +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:36 +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:21 +0100 Message-id: <1420449508-10701-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKJMWRmVeSWpSXmKPExsVy+t/xy7pvwlaFGEzbqW5x5eIhJoupD5+w Wbx+YWjx7UoHk8XlXXPYLDp39bNavNz8hsmB3WPD5yY2j52z7rJ7bFrVyeax7+0yNo++LasY PTafrvb4vEkugD2KyyYlNSezLLVI3y6BK+PrxcksBTs5K24e28XawPibvYuRg0NCwESip5Gt i5ETyBSTuHBvPZDNxSEksJRRYtKVzYwQTh+TxKwLm9lBqtgEjCU2L18C1iEicJxR4sMzDxCb WcBQ4ue7P2A1wgIxErs+bmIFsVkEVCV6upaC2bwC7hIPjp5khtgmJ3Hy2GTWCYzcCxgZVjGK ppYmFxQnpeca6hUn5haX5qXrJefnbmKEBM2XHYyLj1kdYhTgYFTi4fU4sTJEiDWxrLgy9xCj BAezkgjvultAId6UxMqq1KL8+KLSnNTiQ4xMHJxSDYyROQkmV/bL8d07LFO2mXPZmlnup1hf nLPd4x6uv9m7Qd3IPeLGqh0/6yIMqjU2BWtPMGt2nXfMNl4ulS2m8gL3tuPKic1iTYfb+17w z0kT43MWuz3jY2CJ3r6rzudfV0780D3bLD7y72rnF7mRy9l/3l8/c87mKpvsZ1MaF8p1CYb6 eit9a1RiKc5INNRiLipOBAABD13I+AEAAA== Cc: Krzysztof Kozlowski Subject: [alsa-devel] [PATCH 1/8] ASoC: alc5632: 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 --- sound/soc/codecs/alc5632.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/alc5632.c b/sound/soc/codecs/alc5632.c index d1fdbc266631..07630260e1ba 100644 --- a/sound/soc/codecs/alc5632.c +++ b/sound/soc/codecs/alc5632.c @@ -1066,7 +1066,7 @@ static int alc5632_probe(struct snd_soc_codec *codec) return 0; } -static struct snd_soc_codec_driver soc_codec_device_alc5632 = { +static const struct snd_soc_codec_driver soc_codec_device_alc5632 = { .probe = alc5632_probe, .resume = alc5632_resume, .set_bias_level = alc5632_set_bias_level, @@ -1080,7 +1080,7 @@ static struct snd_soc_codec_driver soc_codec_device_alc5632 = { .num_dapm_routes = ARRAY_SIZE(alc5632_dapm_routes), }; -static struct regmap_config alc5632_regmap = { +static const struct regmap_config alc5632_regmap = { .reg_bits = 8, .val_bits = 16,