From patchwork Thu Aug 17 09:15:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9905391 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 E027260244 for ; Thu, 17 Aug 2017 09:18:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCD7A28ACD for ; Thu, 17 Aug 2017 09:18:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D19DE28AD4; Thu, 17 Aug 2017 09:18:37 +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=unavailable 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 39F1628ACD for ; Thu, 17 Aug 2017 09:18:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752572AbdHQJR5 (ORCPT ); Thu, 17 Aug 2017 05:17:57 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:37842 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751843AbdHQJRz (ORCPT ); Thu, 17 Aug 2017 05:17:55 -0400 Received: by mail-pg0-f66.google.com with SMTP id 83so8932098pgb.4; Thu, 17 Aug 2017 02:17:55 -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=P2TE6qWOgfgd1W6xHr40kLQ+d8iob332qOXtQV1+buM=; b=F0LkSD8iOeyrZdBgO5pjDlHq0KwW1KnQuniXXxPoVPBzQ0xj6bccbXQkkPPkuuIGfB fBGb+wld9ny54k6lGGCWFVQWst7+10JXbNOs9/V3WvCde9OSiTV30SE73jOu0XqjBx3s JIwM1ow9HCHJCyb20hmUpZtf7mwOjPzFIHZrELRwuotWfXBNN9hdtOOpAoQa0mnORV0T Fa7uxp6enSgFVfh/tCVQF56C+WJk6wXY7ObTPxBFmAfwbltf+TCMKeV13NSItWdGoOlg 5w0vW3j4qy2ONWyMi42WW3sN8Mrc9WMUEC5/1vocOK60P6H8XtdxOcnylAdtIOxfQMXe r86w== 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=P2TE6qWOgfgd1W6xHr40kLQ+d8iob332qOXtQV1+buM=; b=HNrFubHqpLuPTsqrGWHW9m9T60OlwUNQER1tn2nUn2GvI72iNxjQPEd4ef4yta+uCO 9rdkBmszKL9ubZ4Hqf7LfbDP9iMfp0Z5DIjGPyA4bI1IvYo88aE0InjuOTrLQ+PprMb9 orwSUKGOMIpazgt2IAvapMNq6Hr7XGWFhltthsMGaSl6PA/Z1Obtnu6D9SK05mTFu1CP w8nCgLUy7E3jv0ZwZAoamywRssN2RfoCMDneZmCRbK9KMtjY6IDKjOe096jSqiaq03uA bflEAc+gfyNxJclDlXnrEtyluwxTInRKGpMtzpPvD5WA1cIvQ7hdwifF6BMtIRRYPMe1 rQbQ== X-Gm-Message-State: AHYfb5jDb8m5GPRpSqYyblkPtk1ShzZRq1uaE/E71x6axfssIkW5+IEG 0zjQhA5TFakZZw== X-Received: by 10.101.72.201 with SMTP id o9mr4272187pgs.171.1502961475056; Thu, 17 Aug 2017 02:17:55 -0700 (PDT) Received: from gmail.com ([117.196.97.196]) by smtp.gmail.com with ESMTPSA id v78sm6633078pfd.121.2017.08.17.02.17.49 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 02:17:54 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 17 Aug 2017 14:47:46 +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 10/12] ALSA: sparc: make snd_pcm_hardware const Date: Thu, 17 Aug 2017 14:45:58 +0530 Message-Id: <1502961360-22063-11-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/sparc/amd7930.c | 2 +- sound/sparc/cs4231.c | 4 ++-- sound/sparc/dbri.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/sparc/amd7930.c b/sound/sparc/amd7930.c index 35c1f6a..a6864fd 100644 --- a/sound/sparc/amd7930.c +++ b/sound/sparc/amd7930.c @@ -666,7 +666,7 @@ static snd_pcm_uframes_t snd_amd7930_capture_pointer(struct snd_pcm_substream *s } /* Playback and capture have identical properties. */ -static struct snd_pcm_hardware snd_amd7930_pcm_hw = +static const struct snd_pcm_hardware snd_amd7930_pcm_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c index 3d7d425..f5192b3 100644 --- a/sound/sparc/cs4231.c +++ b/sound/sparc/cs4231.c @@ -1089,7 +1089,7 @@ static int snd_cs4231_probe(struct snd_cs4231 *chip) return 0; /* all things are ok.. */ } -static struct snd_pcm_hardware snd_cs4231_playback = { +static const struct snd_pcm_hardware snd_cs4231_playback = { .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP_VALID | @@ -1113,7 +1113,7 @@ static int snd_cs4231_probe(struct snd_cs4231 *chip) .periods_max = 1024, }; -static struct snd_pcm_hardware snd_cs4231_capture = { +static const struct snd_pcm_hardware snd_cs4231_capture = { .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP_VALID | diff --git a/sound/sparc/dbri.c b/sound/sparc/dbri.c index 52063b2..72b6c4a 100644 --- a/sound/sparc/dbri.c +++ b/sound/sparc/dbri.c @@ -1980,7 +1980,7 @@ static irqreturn_t snd_dbri_interrupt(int irq, void *dev_id) /**************************************************************************** PCM Interface ****************************************************************************/ -static struct snd_pcm_hardware snd_dbri_pcm_hw = { +static const struct snd_pcm_hardware snd_dbri_pcm_hw = { .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |