From patchwork Sat Aug 12 15:31:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897285 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 33F8F60351 for ; Sat, 12 Aug 2017 15:32:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25F4828B5C for ; Sat, 12 Aug 2017 15:32:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1ACED28B65; Sat, 12 Aug 2017 15:32:33 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B29AB28B5C for ; Sat, 12 Aug 2017 15:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752253AbdHLPcc (ORCPT ); Sat, 12 Aug 2017 11:32:32 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36813 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752245AbdHLPca (ORCPT ); Sat, 12 Aug 2017 11:32:30 -0400 Received: by mail-pf0-f195.google.com with SMTP id t83so6013775pfj.3; Sat, 12 Aug 2017 08:32:30 -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=pfJC2Y4xAuGwJoEpjVgN8IQEUn0fiAAI27fIjzE9Zd8=; b=jG4xO4P5WlHn9LgCJJgTltzLzCXA9sWQ0Yb/XvorKnezLbWGS8x+3GcGpmrjsageag uz8HXs+4OSUNSNXdHN8BcRZZ6kCljiFQAQnkb/L1dlL3PI7kS+8LlhtKwWhkoVnCfXJU 2eoVXhGS4fh7kv4onmrwxD2xyme6X216AzWR+lNr05I52+Mj1reu/ammZNTopQERIJXq bFYRAqrn8AZa8B1SaJJ0uhYpMLtwfyrEQYefTApvCaX48f48ZCdNQePBykqIaZCkuunZ FfvYUuOCcJy+/n4v7UMqaiwZ1vGPRMTedMwnRcfJ45tDb2FdPG6/t466dO6luaxo3vTY od3g== 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=pfJC2Y4xAuGwJoEpjVgN8IQEUn0fiAAI27fIjzE9Zd8=; b=AJ4tdoS4bPPEssarnIjggBrNHkWYBvFytJtMcCdhkbQ1vWrTl+Awyhte+dQf+rCl0w FUyGFoDhcPECKRK54lqehXPeOQ063FjQmELVhy3XSVmNjKcsTb6vaUJMSRM/5MaJYUhs cICIEXtYqHjKL2RrvShFqas2lajZxg+U5Jou0YORKpY+F+Dtq/hYbqoegV1173ZryoCa Y0CPq1nmYEckFbD1upUQyCnDyse29DEKRwSjE8ESTNEcqdvPBmeFNnKhJpByU+o45X4T eVW6pUPUlqX5gIe+DHnwruXGTNxKY6BMUcyQDRIzkxTyBm12ufEboI+fJ8WBtpnkwUU8 Abwg== X-Gm-Message-State: AHYfb5h82T9QiGVIb5ubdGMddT8hzQMUERwiFkpdguz4yBnx68a2J9DB roLvShgsHrCW2Q== X-Received: by 10.99.53.12 with SMTP id c12mr18353155pga.15.1502551949970; Sat, 12 Aug 2017 08:32:29 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id b4sm6406666pfg.132.2017.08.12.08.32.25 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:32:29 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:02:22 +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 Cc: Bhumika Goyal Subject: [PATCH 06/16] ALSA: emu10k1: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:18 +0530 Message-Id: <1502551888-30325-7-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> Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.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/emu10k1/emu10k1x.c | 4 ++-- sound/pci/emu10k1/emupcm.c | 10 +++++----- sound/pci/emu10k1/p16v.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index 77a4413..2c2b12a 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c @@ -254,7 +254,7 @@ struct emu10k1x { }; /* hardware definition */ -static struct snd_pcm_hardware snd_emu10k1x_playback_hw = { +static const struct snd_pcm_hardware snd_emu10k1x_playback_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -273,7 +273,7 @@ struct emu10k1x { .fifo_size = 0, }; -static struct snd_pcm_hardware snd_emu10k1x_capture_hw = { +static const struct snd_pcm_hardware snd_emu10k1x_capture_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | diff --git a/sound/pci/emu10k1/emupcm.c b/sound/pci/emu10k1/emupcm.c index 5c9054a..2683b97 100644 --- a/sound/pci/emu10k1/emupcm.c +++ b/sound/pci/emu10k1/emupcm.c @@ -556,7 +556,7 @@ static int snd_emu10k1_efx_playback_prepare(struct snd_pcm_substream *substream) return 0; } -static struct snd_pcm_hardware snd_emu10k1_efx_playback = +static const struct snd_pcm_hardware snd_emu10k1_efx_playback = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_NONINTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -975,7 +975,7 @@ static snd_pcm_uframes_t snd_emu10k1_capture_pointer(struct snd_pcm_substream *s * Playback support device description */ -static struct snd_pcm_hardware snd_emu10k1_playback = +static const struct snd_pcm_hardware snd_emu10k1_playback = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -999,7 +999,7 @@ static snd_pcm_uframes_t snd_emu10k1_capture_pointer(struct snd_pcm_substream *s * Capture support device description */ -static struct snd_pcm_hardware snd_emu10k1_capture = +static const struct snd_pcm_hardware snd_emu10k1_capture = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -1019,7 +1019,7 @@ static snd_pcm_uframes_t snd_emu10k1_capture_pointer(struct snd_pcm_substream *s .fifo_size = 0, }; -static struct snd_pcm_hardware snd_emu10k1_capture_efx = +static const struct snd_pcm_hardware snd_emu10k1_capture_efx = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -1742,7 +1742,7 @@ static snd_pcm_uframes_t snd_emu10k1_fx8010_playback_pointer(struct snd_pcm_subs return snd_pcm_indirect_playback_pointer(substream, &pcm->pcm_rec, ptr); } -static struct snd_pcm_hardware snd_emu10k1_fx8010_playback = +static const struct snd_pcm_hardware snd_emu10k1_fx8010_playback = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_RESUME | diff --git a/sound/pci/emu10k1/p16v.c b/sound/pci/emu10k1/p16v.c index c11f1a2..a30da78 100644 --- a/sound/pci/emu10k1/p16v.c +++ b/sound/pci/emu10k1/p16v.c @@ -122,7 +122,7 @@ */ /* hardware definition */ -static struct snd_pcm_hardware snd_p16v_playback_hw = { +static const struct snd_pcm_hardware snd_p16v_playback_hw = { .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -143,7 +143,7 @@ .fifo_size = 0, }; -static struct snd_pcm_hardware snd_p16v_capture_hw = { +static const struct snd_pcm_hardware snd_p16v_capture_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |