From patchwork Sat Aug 12 15:31:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897329 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 397F460351 for ; Sat, 12 Aug 2017 15:34:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B53B28619 for ; Sat, 12 Aug 2017 15:34:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 203E1286BB; Sat, 12 Aug 2017 15:34:28 +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 BE9B728619 for ; Sat, 12 Aug 2017 15:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750995AbdHLPdV (ORCPT ); Sat, 12 Aug 2017 11:33:21 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:37013 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494AbdHLPdU (ORCPT ); Sat, 12 Aug 2017 11:33:20 -0400 Received: by mail-pf0-f193.google.com with SMTP id p13so6003984pfd.4; Sat, 12 Aug 2017 08:33:20 -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=hGN4pidZ+/AAhsaFSE9upWekZI8h8DPvg8jazPZi7eM=; b=s11qSDRo0Xz8szibU5s8yOjPgy8cLSUCiiWzCvOUnMFgYjcmhiqrPFFk8aW7/CTZcz CK2bAOFEu/+TREqwr7AnWvbxb1gJgW5S9nBLOKD37IgwTCno1uGM/gu4Tcw05YaPAVKu 5O8ZhdupMT/nMJVGaouaUQTumzp89QxGvTbK8BhTGGivzeFJMZ09MMyZZcyLvsghk/tP 3wJqY8T41sFrCFvwUbuq9wpklCwHjrt+IHNgBE0ntMxRbL8hajftI4bG5v6V1O/Y6/ja rDPEgkm0enB0s7/IYTKWFg+yJC/8tqfrH49ConWg+AmyBP8wUTd933I251oIrSOodboT Fwwg== 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=hGN4pidZ+/AAhsaFSE9upWekZI8h8DPvg8jazPZi7eM=; b=g0qPEZZj2zl7/WNlicwe4PF9/1hFm0DAzlrWz8py88h5BblCTn1h1/KxpqusKcK0hJ nDl2kZXFkh0ab4NYML1LHfzheqxboDCb4bFLUIU4TeuJxWyaW85uGjh038D1rUmxT3QM huTP+lMFNTe4uB5kZTZyVvzWzUOwW1YiRcyNlDFBGpedu/crPS5voQC36lLW9MKIXsIa c1r829mrw5WPtKRXjaSs2+s52mWyd+oyVvEEMXYFp0rMp0RK+1pZbpp/G2PFath+PPz5 y5xtckA3j0k1xdI2df2JTmka5sr+RA7scrqRy/k5a/wO8GK3iF0n7lmKQ3UULN7vhOh4 APEg== X-Gm-Message-State: AHYfb5ikCKIHdzojMvpJ4Ah2GrueIbTkm3iseBkYbXXc4uoxdA6Xrr1t Z+fHt+1ctnisfg== X-Received: by 10.84.128.9 with SMTP id 9mr21027910pla.98.1502551999604; Sat, 12 Aug 2017 08:33:19 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id c76sm6329165pfc.100.2017.08.12.08.33.14 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:33:19 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:03:11 +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 12/16] ALSA: riptide: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:24 +0530 Message-Id: <1502551888-30325-13-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/riptide/riptide.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c index f067c76..44f3b48 100644 --- a/sound/pci/riptide/riptide.c +++ b/sound/pci/riptide/riptide.c @@ -1315,7 +1315,7 @@ static int riptide_reset(struct cmdif *cif, struct snd_riptide *chip) return 0; } -static struct snd_pcm_hardware snd_riptide_playback = { +static const struct snd_pcm_hardware snd_riptide_playback = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_MMAP_VALID), @@ -1334,7 +1334,7 @@ static int riptide_reset(struct cmdif *cif, struct snd_riptide *chip) .periods_max = 64, .fifo_size = 0, }; -static struct snd_pcm_hardware snd_riptide_capture = { +static const struct snd_pcm_hardware snd_riptide_capture = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_MMAP_VALID),