From patchwork Thu Aug 17 09:15:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9905399 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 989FA60244 for ; Thu, 17 Aug 2017 09:18:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9683C28ACD for ; Thu, 17 Aug 2017 09:18:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B2AF28AD4; Thu, 17 Aug 2017 09:18:59 +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=-4.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB,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 C4D8A28AD2 for ; Thu, 17 Aug 2017 09:18:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752335AbdHQJRY (ORCPT ); Thu, 17 Aug 2017 05:17:24 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35650 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752378AbdHQJRV (ORCPT ); Thu, 17 Aug 2017 05:17:21 -0400 Received: by mail-pg0-f68.google.com with SMTP id t80so2789992pgb.2; Thu, 17 Aug 2017 02:17:21 -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=TmOvUxlRJjJezz2CuDaXXYLa1kE7wDpkgI/q4lxcOXg=; b=Ae8x68CY0at+PgGeLpcePIZwdvw7ZEXuvIGmk1B5Cg1rNYvCA3Hh/RN+D6pNtoT05O bGGrGV/ajaFCLi9MwZFwNd/4hsI4z/537q4szkhCWwh0iWhoUiOy3TyVK7QhMd4KvroQ l9DPcV+dRVZwYK/wpIAAK0UkHFIj8ELW2JPNppkEtBFPGg8yRKhRXMH18KB//VcotLE+ FxDhKXrhPRdp3nuXnpMyupGSNM5US08FziBkbJRx/IaoM7l3V9gK1pqCmJHbkrZ04mtR kAj9Ig0b/R7X8yUsRF5POBX7M+TV6okRLdHB4wErF9MFoROM4cbhqdLwT5xkTu0/pOcp VsZg== 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=TmOvUxlRJjJezz2CuDaXXYLa1kE7wDpkgI/q4lxcOXg=; b=dvl6dnPte9uMXj8OczG9JjqoYAzhv41qWfJO77Bsty1rpypIlYX5LkMz7MrGjS8Nqu 6iN3Ucev52ye1oZA/iqYT1bN2Pf1a1d9mjt1uYjNEUmAZpeM2AcmCVI1EvZz+dccgxOz M9zkP/lkXMOREnyJGHSTaTpywSj2XMakdNmZCens2ozdzAY1H+1hKMK1lNAd+CCw3mIm crp//ir39QjW/yjDMo5+Zi/rZ1GXjGeiGoEb8rltZNLFrG5RqwmefbFENU58mW/N1ZEM ppYVEhQTcemwP8zyFNb9SpiF7O2RMknS7uhj8abMf5wy+qtm2ULiu/pPU5q2UQn4+XgD +c0g== X-Gm-Message-State: AHYfb5hBjMavTiQkwqBtITDbpuhZeoJT3Lu8Q3AK7cYlx/7OKDu/U8F2 I3+5Ak3+EFaEZA== X-Received: by 10.84.129.13 with SMTP id 13mr5189273plb.467.1502961440853; Thu, 17 Aug 2017 02:17:20 -0700 (PDT) Received: from gmail.com ([117.196.97.196]) by smtp.gmail.com with ESMTPSA id q21sm6605384pfj.126.2017.08.17.02.17.14 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 02:17:19 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 17 Aug 2017 14:47:12 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, linux@armlinux.org.uk, perex@perex.cz, tiwai@suse.com, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Bhumika Goyal Subject: [PATCH 06/12] ALSA: pci: make snd_pcm_hardware const Date: Thu, 17 Aug 2017 14:45:54 +0530 Message-Id: <1502961360-22063-7-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502961360-22063-1-git-send-email-bhumirks@gmail.com> References: <1502961360-22063-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 in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/au88x0/au88x0_pcm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/pci/au88x0/au88x0_pcm.c b/sound/pci/au88x0/au88x0_pcm.c index 848eb3c..53714e0 100644 --- a/sound/pci/au88x0/au88x0_pcm.c +++ b/sound/pci/au88x0/au88x0_pcm.c @@ -30,7 +30,7 @@ #define VORTEX_PCM_TYPE(x) (x->name[40]) /* hardware definition */ -static struct snd_pcm_hardware snd_vortex_playback_hw_adb = { +static const struct snd_pcm_hardware snd_vortex_playback_hw_adb = { .info = (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | @@ -51,7 +51,7 @@ }; #ifndef CHIP_AU8820 -static struct snd_pcm_hardware snd_vortex_playback_hw_a3d = { +static const struct snd_pcm_hardware snd_vortex_playback_hw_a3d = { .info = (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | @@ -71,7 +71,7 @@ .periods_max = 64, }; #endif -static struct snd_pcm_hardware snd_vortex_playback_hw_spdif = { +static const struct snd_pcm_hardware snd_vortex_playback_hw_spdif = { .info = (SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */ SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED | @@ -94,7 +94,7 @@ }; #ifndef CHIP_AU8810 -static struct snd_pcm_hardware snd_vortex_playback_hw_wt = { +static const struct snd_pcm_hardware snd_vortex_playback_hw_wt = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP_VALID),