From patchwork Mon Aug 14 05:56:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9898121 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 F3554602D9 for ; Mon, 14 Aug 2017 05:59:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E59E7201CB for ; Mon, 14 Aug 2017 05:59:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA4BF206AC; Mon, 14 Aug 2017 05:59:16 +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 33B5720683 for ; Mon, 14 Aug 2017 05:59:16 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id A0CF7266E37; Mon, 14 Aug 2017 07:57:53 +0200 (CEST) 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 00D25266FD1; Mon, 14 Aug 2017 07:57:51 +0200 (CEST) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by alsa0.perex.cz (Postfix) with ESMTP id 02C7E266E37 for ; Mon, 14 Aug 2017 07:57:49 +0200 (CEST) Received: by mail-pg0-f65.google.com with SMTP id 83so8947616pgb.4 for ; Sun, 13 Aug 2017 22:57:49 -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:in-reply-to:references; bh=69XUxjr4RbjSfRfDtyVor0t4kl/TJQ0O4D4HtiyVtvc=; b=Zbyj/mfTiF5iGgj+mfrj1ePqMJOLB/VzPfmkA9q9umAPKC8uOZv24Adqbx4NJPdm0M KUsTItxs7jaZ06EAsgcJega4Tdp8BJaLITvLObkAGjk3LQBNrzgyTFvMdPw95HNCaDZD LuKsa+1jRp3XcA+cNwR9T8AUbO2Ky7mIwmo/OSAeGE1NCpUpt3GHQTUwLp5IfSRIHTos iZgVSe42yOyjuj8ho1JvHq393yvzb5jYrusoff8eVErDpwi9j99frCdiS4nuQmAnjpsa 8Hl/1FCGnr3pECkEm4YdFD7lxh/6DbEyA8XaJvk3kq3mSvVKRtuREYMgwnSXWxzKnvt0 cfAA== 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:in-reply-to :references; bh=69XUxjr4RbjSfRfDtyVor0t4kl/TJQ0O4D4HtiyVtvc=; b=uVh3Akck4tVc944Xb+Gwat/4ZvBI5KQGQsIew27piuBrMDKdeI6ffw1QAukg7z5xSi eskgdUKmYpfO5AliUPKcnago/w4kd98wL3jY5I+13tz4gQ08i6tUpGd7Vd1SKIFrESGN ACXwN8xYv7Y1UB7RvARKwRmb/2UN/0edS5AD39W5GB2Z15pvJ3YDgjyf3CChpE8NOeFC 7cEWefj13xjF/djMh5T61dbbOtRKrzbPSJjZ22g/zQDs/FEzMKJkqNWJtTglEBtWBP/o Zb8CYAeBsvGbkB43rWnsySghm77W0wPpUoRnpZVmKHjzb5K5jU/hcEkeCgImHg06hG7g jbAA== X-Gm-Message-State: AHYfb5i6UmRaUHYYt1ttYJOhEvkpPn10NZoEu4EnTFRS5XkWjPeRWfZz OpSF15GBBr9tiA== X-Received: by 10.84.197.129 with SMTP id n1mr26856484pld.385.1502690269144; Sun, 13 Aug 2017 22:57:49 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id p80sm12990593pfa.19.2017.08.13.22.57.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 Aug 2017 22:57:48 -0700 (PDT) From: Arvind Yadav To: perex@perex.cz, tiwai@suse.com, lgirdwood@gmail.com, broonie@kernel.org Date: Mon, 14 Aug 2017 11:26:27 +0530 Message-Id: <1502690193-29059-5-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502690193-29059-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502690193-29059-1-git-send-email-arvind.yadav.cs@gmail.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 04/10] ASoC: intel: constify snd_pcm_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 snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/baytrail/sst-baytrail-pcm.c b/sound/soc/intel/baytrail/sst-baytrail-pcm.c index 4765ad4..0bdc057 100644 --- a/sound/soc/intel/baytrail/sst-baytrail-pcm.c +++ b/sound/soc/intel/baytrail/sst-baytrail-pcm.c @@ -309,7 +309,7 @@ static int sst_byt_pcm_mmap(struct snd_pcm_substream *substream, return snd_pcm_lib_default_mmap(substream, vma); } -static struct snd_pcm_ops sst_byt_pcm_ops = { +static const struct snd_pcm_ops sst_byt_pcm_ops = { .open = sst_byt_pcm_open, .close = sst_byt_pcm_close, .ioctl = snd_pcm_lib_ioctl,