From patchwork Fri Aug 18 07:45:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9907799 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 9B9B960382 for ; Fri, 18 Aug 2017 07:51:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D3A128C5D for ; Fri, 18 Aug 2017 07:51:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8227628C62; Fri, 18 Aug 2017 07:51:18 +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 E654628C5D for ; Fri, 18 Aug 2017 07:51:17 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 752F2267721; Fri, 18 Aug 2017 09:49:22 +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 CF65F267252; Fri, 18 Aug 2017 09:49:16 +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 E17D5267269 for ; Fri, 18 Aug 2017 09:46:10 +0200 (CEST) Received: by mail-pg0-f65.google.com with SMTP id y129so13771941pgy.3 for ; Fri, 18 Aug 2017 00:46:10 -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 :in-reply-to:references; bh=9ll7rZ1heDk5du2gGg8nBtRq3vzYfj05lcA0ZxiNI7c=; b=VQR6o/5BDFyzA5Ula9vLDfccSQSwlwQlNas5XYU8juJkc+9cSMSFoadPXX2eEL3HQu WQzKw6DHSuy3lGHiAIPInAIiT9llq7pLkUZACgxKe7eb5dopj0eAM0Rga6uwpA1LHFKa Tvz/UUtdh5sxZAn2CjnZ0SDy8yOC5l22goDB9Thv/+8NyBIX+A7ML+sH5ugL7NDY6x5A nlxnQQsdPzvzy3VSXmkYqTgeRYPvxRQ60k17OukXC58DXHnt4Yi2k7ok1rTXg8jZUaZ+ aoc8scIaJwW/Y0Kpf28Rz5uJ3Dx/UZCBOjZm3AvWcOysCk9dPQvQuttzQ1XQ2DsTHk3V 85BQ== 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:in-reply-to:references; bh=9ll7rZ1heDk5du2gGg8nBtRq3vzYfj05lcA0ZxiNI7c=; b=RGMagyNEsOTPw95zYJ5T1TdG9ugHqcl8Ro9YGDE6BKuXHmBi6IhNy/afvPV3GdqNS4 NdZiZPNM/7u+GY7BkSAP+qiqoCEHLUG2PnhP63FoCv9M9th9Hs5F4A08Tvrp5ImeARPj JlfDQum4mODBGbytJSoJwLZogbG9vrSoJfCq2FRBzKddHdIa6t141ikJJZ+m1W0Q77qs yVL0r2MlYb8GqPSMxv6pdax4M5FG9+NlX+LapXj1Xf2O8eU602F7RGSj2zOTlUdHyWT0 PnmTkC/a0kKUGAVYF9aRWcSTthYTCp9gD6Jf5GxXH3zDCWv0J5izZm4peOBqTTIDyMjW tBLg== X-Gm-Message-State: AHYfb5if4n9+wFFE3sXJNtWzSKy2bbERWYGO2PeJpSEK+eGZJYKjhMQQ ljdY63MMKZLsnQ== X-Received: by 10.84.237.2 with SMTP id s2mr8607424plk.70.1503042370216; Fri, 18 Aug 2017 00:46:10 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id h62sm11690482pfc.97.2017.08.18.00.46.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Aug 2017 00:46:09 -0700 (PDT) From: Arvind Yadav To: perex@perex.cz, tiwai@suse.com, johannes@sipsolutions.net, linux@armlinux.org.uk, daniel@zonque.org, clemens@ladisch.de Date: Fri, 18 Aug 2017 13:15:16 +0530 Message-Id: <87abbbed3d1ccde13195745314468a504a2fc4ed.1503040251.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503042321-26758-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1503042321-26758-1-git-send-email-arvind.yadav.cs@gmail.com> In-Reply-To: <19589e15b10f062109b5e90c9c253aefb2d3819c.1503040251.git.arvind.yadav.cs@gmail.com> References: <19589e15b10f062109b5e90c9c253aefb2d3819c.1503040251.git.arvind.yadav.cs@gmail.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 08/13] ALSA: pcmcia: 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/pcmcia/pdaudiocf/pdaudiocf_pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c b/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c index b48aa0a..a81ec25 100644 --- a/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c +++ b/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c @@ -266,7 +266,7 @@ static snd_pcm_uframes_t pdacf_pcm_capture_pointer(struct snd_pcm_substream *sub /* * operators for PCM capture */ -static struct snd_pcm_ops pdacf_pcm_capture_ops = { +static const struct snd_pcm_ops pdacf_pcm_capture_ops = { .open = pdacf_pcm_capture_open, .close = pdacf_pcm_capture_close, .ioctl = snd_pcm_lib_ioctl,