From patchwork Sat Mar 18 14:04:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9632209 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F4077601E9 for ; Sat, 18 Mar 2017 14:04:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E270A2026B for ; Sat, 18 Mar 2017 14:04:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D375828454; Sat, 18 Mar 2017 14:04:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB7132026B for ; Sat, 18 Mar 2017 14:04:36 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 47269266A33; Sat, 18 Mar 2017 15:04:34 +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 784BB266A3F; Sat, 18 Mar 2017 15:04:32 +0100 (CET) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by alsa0.perex.cz (Postfix) with ESMTP id 9A8662666E1 for ; Sat, 18 Mar 2017 15:04:25 +0100 (CET) Received: by mail-pf0-f196.google.com with SMTP id p189so6210843pfp.0 for ; Sat, 18 Mar 2017 07:04:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=oMj85h8NUTMkjbDMJQTOA5o8Hhz1RJQicUiqFdYrPac=; b=ndCODKbMOq3qnDgj1SM4Dub2wqtf7lKezzmSlMwi+qdC8/MU2Wd26dHydMWepI7Dqy XTc+no/MP9f/T2jzxYACnLx/duwCNRuajY8DpVFQw2BgPpgdeFCQmxqLCxWfmi1tG0pc e99tP8ZT0uXAzl8peI/TPprKprQBS5UdMNQlLeB7QkoWdL3Ryo6cvONlutR55bbLzuNg iL+T/HMtOOPyKZunQBMfr2c/JpSxGIiw9rAdYWdKoKCKaIyFotBnRo3sGp9ZiEeVmL/B u1bZX94tbVBIFdqgjKR7YTcmXqAIgKolR7KE/Y1T0XRVx/JSju62v/n9wYaohNUE5emd T5cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=oMj85h8NUTMkjbDMJQTOA5o8Hhz1RJQicUiqFdYrPac=; b=mLGSrl8PwB73OShaesPTtMlgsdyjBHpMtfEk4dVOwAo7p9Ty1fWBUEScGwfBF6+PQr u4d5JDoIGC5mNEFsgVCt8g2LpeQdGwP4DjVbmKS84P9rI0p9ZJ9624SKeJST2xt72RAX FFZoTN7Yp2DMOfkp4qZE6CzSC7ff2YA25fb/2P946gfoptjcdiqUuQQIZv3AtgOr/zVO ei1wKto1oSm9v9cnIwG3AekZo5LmFK4aGkacVmIzJLFQhRCVRIGj/BnRWcv1yd/N2OfO 2lyyFoWOEtf6MOLNadgE3dJXTtHvfe3toi0cjfEkEXVZwwJ37SLf3AsDxcBX6s87jgih ZMSw== X-Gm-Message-State: AFeK/H0GPZsVH0Ng9Eunn51iIPKKNG/8C5RY2FmqoZtMFdS4aBQs6Nlvoglq+kDleEyheA== X-Received: by 10.84.215.155 with SMTP id l27mr27433042pli.31.1489845864191; Sat, 18 Mar 2017 07:04:24 -0700 (PDT) Received: from gmail.com ([2405:204:5480:6a7c:9033:6244:64c8:eeec]) by smtp.gmail.com with ESMTPSA id r13sm23112732pfg.55.2017.03.18.07.04.17 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 18 Mar 2017 07:04:23 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 18 Mar 2017 19:34:13 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, peter.ujfalusi@ti.com, jarkko.nikula@bitmer.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 18 Mar 2017 19:34:11 +0530 Message-Id: <1489845851-25364-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: Bhumika Goyal Subject: [alsa-devel] [PATCH] ASoC: omap: constify snd_soc_ops structures 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 Declare snd_soc_ops structures as const as they are only stored in the ops field of a snd_soc_dai_link structure. This field is of type const, so snd_soc_ops structures having this property can be made const too. Cross compiled the .o files for arm architecture. Signed-off-by: Bhumika Goyal Reviewed-by: Sebastian Reichel Acked-by: Jarkko Nikula --- sound/soc/omap/am3517evm.c | 2 +- sound/soc/omap/n810.c | 2 +- sound/soc/omap/omap-abe-twl6040.c | 2 +- sound/soc/omap/omap-twl4030.c | 2 +- sound/soc/omap/omap3pandora.c | 2 +- sound/soc/omap/osk5912.c | 2 +- sound/soc/omap/rx51.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/omap/am3517evm.c b/sound/soc/omap/am3517evm.c index 25a33e9..d565102 100644 --- a/sound/soc/omap/am3517evm.c +++ b/sound/soc/omap/am3517evm.c @@ -49,7 +49,7 @@ static int am3517evm_hw_params(struct snd_pcm_substream *substream, return ret; } -static struct snd_soc_ops am3517evm_ops = { +static const struct snd_soc_ops am3517evm_ops = { .hw_params = am3517evm_hw_params, }; diff --git a/sound/soc/omap/n810.c b/sound/soc/omap/n810.c index fdecb70..71e5f31 100644 --- a/sound/soc/omap/n810.c +++ b/sound/soc/omap/n810.c @@ -124,7 +124,7 @@ static int n810_hw_params(struct snd_pcm_substream *substream, return err; } -static struct snd_soc_ops n810_ops = { +static const struct snd_soc_ops n810_ops = { .startup = n810_startup, .hw_params = n810_hw_params, .shutdown = n810_shutdown, diff --git a/sound/soc/omap/omap-abe-twl6040.c b/sound/soc/omap/omap-abe-twl6040.c index 89fe95e..614b18d 100644 --- a/sound/soc/omap/omap-abe-twl6040.c +++ b/sound/soc/omap/omap-abe-twl6040.c @@ -70,7 +70,7 @@ static int omap_abe_hw_params(struct snd_pcm_substream *substream, return ret; } -static struct snd_soc_ops omap_abe_ops = { +static const struct snd_soc_ops omap_abe_ops = { .hw_params = omap_abe_hw_params, }; diff --git a/sound/soc/omap/omap-twl4030.c b/sound/soc/omap/omap-twl4030.c index 7431314..a24b0de 100644 --- a/sound/soc/omap/omap-twl4030.c +++ b/sound/soc/omap/omap-twl4030.c @@ -73,7 +73,7 @@ static int omap_twl4030_hw_params(struct snd_pcm_substream *substream, return snd_soc_runtime_set_dai_fmt(rtd, fmt); } -static struct snd_soc_ops omap_twl4030_ops = { +static const struct snd_soc_ops omap_twl4030_ops = { .hw_params = omap_twl4030_hw_params, }; diff --git a/sound/soc/omap/omap3pandora.c b/sound/soc/omap/omap3pandora.c index 732e749..4e3de71 100644 --- a/sound/soc/omap/omap3pandora.c +++ b/sound/soc/omap/omap3pandora.c @@ -184,7 +184,7 @@ static int omap3pandora_in_init(struct snd_soc_pcm_runtime *rtd) return 0; } -static struct snd_soc_ops omap3pandora_ops = { +static const struct snd_soc_ops omap3pandora_ops = { .hw_params = omap3pandora_hw_params, }; diff --git a/sound/soc/omap/osk5912.c b/sound/soc/omap/osk5912.c index aa4053b..e409677 100644 --- a/sound/soc/omap/osk5912.c +++ b/sound/soc/omap/osk5912.c @@ -68,7 +68,7 @@ static int osk_hw_params(struct snd_pcm_substream *substream, return err; } -static struct snd_soc_ops osk_ops = { +static const struct snd_soc_ops osk_ops = { .startup = osk_startup, .hw_params = osk_hw_params, .shutdown = osk_shutdown, diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index a768457..66ac358 100644 --- a/sound/soc/omap/rx51.c +++ b/sound/soc/omap/rx51.c @@ -123,7 +123,7 @@ static int rx51_hw_params(struct snd_pcm_substream *substream, SND_SOC_CLOCK_IN); } -static struct snd_soc_ops rx51_ops = { +static const struct snd_soc_ops rx51_ops = { .startup = rx51_startup, .hw_params = rx51_hw_params, };