From patchwork Sat Aug 12 15:31:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897363 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 80B7660325 for ; Sat, 12 Aug 2017 15:36:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 721AB286BB for ; Sat, 12 Aug 2017 15:36:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67072287B2; Sat, 12 Aug 2017 15:36:24 +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 C7594286BB for ; Sat, 12 Aug 2017 15:36:23 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 929F52670BB; Sat, 12 Aug 2017 17:34:19 +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 412CA267141; Sat, 12 Aug 2017 17:34:18 +0200 (CEST) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by alsa0.perex.cz (Postfix) with ESMTP id 710932670B8 for ; Sat, 12 Aug 2017 17:33:28 +0200 (CEST) Received: by mail-pg0-f67.google.com with SMTP id 123so5349117pga.5 for ; Sat, 12 Aug 2017 08:33:28 -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=BqClVihX1G7iaeBiZUOFLD+MkTSgDHbq6UTTJ+Mp9i0=; b=qEji4me8uuQeLJCjmZOghXnxBeM1TskacjJLMTshkVW2gc82mwr2nrTxeORjadzgOi gbbohBwI225qF9i7GRbR0HbFNltv3Vxk4TJUbwSnx0hVCpv999ZmcnvN9LbtQXSS+R1s UJO0lm7xZaii+r6iIx6cJbA4dw5IpJIFhIYuZvJ8GbtWkLUXzNjieFUX849yKWDhxYaI 42/HK79HHOKDdNtfrKwT+bcOlhIVNQnJY8tZqDc1PrslVvSJdIi3iP0fN5AbXIf/CBaZ 1h+40E1YAJ5enVL1jSJeqj4TmAjomTHWyEMxYjwswEl4M0TLH5r7M2/NzXihbThND2If stBg== 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=BqClVihX1G7iaeBiZUOFLD+MkTSgDHbq6UTTJ+Mp9i0=; b=riHpcxnl1NTVAWvA2DQh7CDBQfKM5YpqE9Fpn3NxFdc+CVaruchQELAkAR/Kj7bE5e T7DF1CmAvZHqRGqVuMLWi4kCs/LQFYyHPPPi7l9Yl80WuGhEd1W9T/eoehlHbVq+2CLt xdH1AkX5f9sHFF1ZDTF2u7AKRuZVIgJCNFezMdQGHcyUtVkgxZLfM/ilyQAlnBpZ0zCh eDp5PtNeG+o9fCuV9aGkRN7vL0FTIY3AgsGuPvFAKrbi7FiSzzjnnvxZMxo89hyNV1GK 8TYclSu83u2xb5IIiNpP4tVULDm07nxh1jgALS72zTFSIrNVRkyiecZi/AfYIXAPhO/R Xx4w== X-Gm-Message-State: AHYfb5iDhH5r4EZ/O6oaiCRjcvdcUgNJOItsU7ApcBbD14ne2/P5lW6o niU2irG7QOfPKw== X-Received: by 10.99.138.65 with SMTP id y62mr18842533pgd.180.1502552007500; Sat, 12 Aug 2017 08:33:27 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id v69sm6786966pfk.94.2017.08.12.08.33.22 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:33:27 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:03:19 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, T-Bone@parisc-linux.org, perex@perex.cz, tiwai@suse.com, clemens@ladisch.de, jayakumar.alsa@gmail.com, linux-parisc@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Sat, 12 Aug 2017 21:01:25 +0530 Message-Id: <1502551888-30325-14-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502551888-30325-1-git-send-email-bhumirks@gmail.com> References: <1502551888-30325-1-git-send-email-bhumirks@gmail.com> Cc: Bhumika Goyal Subject: [alsa-devel] [PATCH 13/16] ALSA: rme9652: make snd_pcm_hardware const 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 Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/rme9652/hdsp.c | 4 ++-- sound/pci/rme9652/rme9652.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c index fe36d44..9535e6a 100644 --- a/sound/pci/rme9652/hdsp.c +++ b/sound/pci/rme9652/hdsp.c @@ -4211,7 +4211,7 @@ static int snd_hdsp_prepare(struct snd_pcm_substream *substream) return result; } -static struct snd_pcm_hardware snd_hdsp_playback_subinfo = +static const struct snd_pcm_hardware snd_hdsp_playback_subinfo = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | @@ -4241,7 +4241,7 @@ static int snd_hdsp_prepare(struct snd_pcm_substream *substream) .fifo_size = 0 }; -static struct snd_pcm_hardware snd_hdsp_capture_subinfo = +static const struct snd_pcm_hardware snd_hdsp_capture_subinfo = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | diff --git a/sound/pci/rme9652/rme9652.c b/sound/pci/rme9652/rme9652.c index 150d088..eff4993 100644 --- a/sound/pci/rme9652/rme9652.c +++ b/sound/pci/rme9652/rme9652.c @@ -2181,7 +2181,7 @@ static int snd_rme9652_prepare(struct snd_pcm_substream *substream) return result; } -static struct snd_pcm_hardware snd_rme9652_playback_subinfo = +static const struct snd_pcm_hardware snd_rme9652_playback_subinfo = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | @@ -2205,7 +2205,7 @@ static int snd_rme9652_prepare(struct snd_pcm_substream *substream) .fifo_size = 0, }; -static struct snd_pcm_hardware snd_rme9652_capture_subinfo = +static const struct snd_pcm_hardware snd_rme9652_capture_subinfo = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID |