From patchwork Sat Aug 12 15:31:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897321 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 9DBE660351 for ; Sat, 12 Aug 2017 15:34:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FB622859A for ; Sat, 12 Aug 2017 15:34:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84C352869F; Sat, 12 Aug 2017 15:34:13 +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 326ED2859A for ; Sat, 12 Aug 2017 15:34:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752576AbdHLPdt (ORCPT ); Sat, 12 Aug 2017 11:33:49 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:37078 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494AbdHLPdq (ORCPT ); Sat, 12 Aug 2017 11:33:46 -0400 Received: by mail-pf0-f194.google.com with SMTP id p13so6004666pfd.4; Sat, 12 Aug 2017 08:33:46 -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=pcq1SlecnHCJcvCPoKyVUhCRRCpzwaUs1udPlvgdW1w=; b=NVUgqODJHyHhCunriyZyUXCxGVmeQUey/VYelJVvMGjDafjK9KX1+xwhihwAoLmd7s ytJdi1MIAV8j5DWEEmZfbuL52u/DFba9Xj30jEHL91UQ43OlIO5waU3gzRV65tvb3rzO B9W93m2law0oy5D6XskScfY2/LJFwcEtaDGR++yo/pOfDTSaHdGh3VWvdshe8dTVsvz5 WIeHG5PI88Zk54mljsfMPeRK8AdM7QW1kj3xouuMWz071RZJd+f41JWNLyokDAw2D39e KUW08VDrAXALZ8kAVwJuX/8c7HtaEPCbR+zQEO4mxzPwi4Y6BfPb34aRFIitcTlVF2m5 PbTw== 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=pcq1SlecnHCJcvCPoKyVUhCRRCpzwaUs1udPlvgdW1w=; b=QA4YzWkZWHel6WrBBd0WKRHO5o/RAHGefT3vkscZM7muVel/sfgL+NsmAmDRikrY2G gRMO2XRJQECLnIBMQO2Mb0hVPQUKfKhtpdbrTi9f7KXjuiTzxXy5txFDQs3Su5EjrsPI nbM3E5tpKHNRfejWDpSIKuKVJ+WYyCCfX8NOROdaJ3NrRVMLtOyiWFShnKB7TYFSggB2 qu/3Ifvzs+BGEGXUrf+uYrPpG+cSxlKW66DX5KpyErYdil3Zp9CmGZBtKLE+9uxulCJQ 80BxFzz+5EhMHegRMvxA6XCsPWAxv7nHmXaJ4y6FuY8tovUm6gclK+bGa2+sKd7p4XJY IITw== X-Gm-Message-State: AHYfb5jpFEJMKDxGw5CVyeU03tGYEizcKXAWWuO8H/S0PuNaF+HzdfC+ ME4FJlmaK733+Q== X-Received: by 10.99.112.76 with SMTP id a12mr18328568pgn.334.1502552025857; Sat, 12 Aug 2017 08:33:45 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id q5sm7093177pgn.21.2017.08.12.08.33.40 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:33:45 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:03:36 +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 15/16] ALSA: ymfpci: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:27 +0530 Message-Id: <1502551888-30325-16-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/ymfpci/ymfpci_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c index 1114166..edfd5824 100644 --- a/sound/pci/ymfpci/ymfpci_main.c +++ b/sound/pci/ymfpci/ymfpci_main.c @@ -845,7 +845,7 @@ static irqreturn_t snd_ymfpci_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static struct snd_pcm_hardware snd_ymfpci_playback = +static const struct snd_pcm_hardware snd_ymfpci_playback = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | @@ -867,7 +867,7 @@ static irqreturn_t snd_ymfpci_interrupt(int irq, void *dev_id) .fifo_size = 0, }; -static struct snd_pcm_hardware snd_ymfpci_capture = +static const struct snd_pcm_hardware snd_ymfpci_capture = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID |