From patchwork Sat Aug 12 15:31:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897357 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 1B11C60325 for ; Sat, 12 Aug 2017 15:36:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D0FE286BB for ; Sat, 12 Aug 2017 15:36:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01FFD287B2; Sat, 12 Aug 2017 15:36:01 +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 A1678286BB for ; Sat, 12 Aug 2017 15:36:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751989AbdHLPcA (ORCPT ); Sat, 12 Aug 2017 11:32:00 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:32887 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbdHLPb5 (ORCPT ); Sat, 12 Aug 2017 11:31:57 -0400 Received: by mail-pg0-f65.google.com with SMTP id u185so5371072pgb.0; Sat, 12 Aug 2017 08:31:57 -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=voElHSAC4WyWqAYDauSnSmyB80dKE3koJleEtMciZAA=; b=kh0RMsHBpKB1oPaE8W6XZgCzUBPZo/QO4WlHri/IWVbbCwsvfyP0754m2S6eDbGnAG yEoUGMzIVeE1odIwzQ4bmYQFujaEcyfd5Qxzgy1KTj6TgYRKSVWKypg/q0ohKurvga/4 jEtwoZ0w8+VQFHab3BiVRDjeR2QWYJX+TrCotKl9DS+0B4wmcnshtSIbJ0u7f/qRedy5 x8k63BDmlp0M5IUa1+TQ1CGLd+WjJ9vgRYKMcmOFjkhNE3B2TKvZFV5zGVi9Ws7xq2jj K2hDrGkNaaUCDrUhzn6YWoE/E8A3oqsX4Vkunk8g0VO+XK0ZO1Dr2YGKaCYx81Xf67+l p9uQ== 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=voElHSAC4WyWqAYDauSnSmyB80dKE3koJleEtMciZAA=; b=VzogrY+wU4RkwL6HAeSuD2nPQn6GzAWpDip87HgyQO0WK/zGc3nWnIYvW/qvRKaL71 par4oMSHc7Yc4PaUmBHSflIHIS11ha6V/oFZDtu9TyF9kumZbLjGzF7hGpVVMYq/seBO M20oD+aHfdPTtTOiCd+NvOakZSEylGIKmTILw37GYPOvyeX63dsDGaOTiMuiMIvj2PWd vRGLFbJWZrYdK+uRXpkDcInVQpgvv2dG44QavGDx4BqQAucOCoASAgyYlHvV/e6ZmJuJ pn2hVMUDFf1XKbIYZhFG1kU9ZPhWzPx6ot7v3aeP74pOznDiWxSjQMXAFrVaZbvtzdN/ bZfQ== X-Gm-Message-State: AHYfb5iBO2GmCRrk7ka9lbG4qpsnLZIVKpKKMq/r4s8NF1G+j6caGeMT RdfC48dNC3NByA== X-Received: by 10.84.214.22 with SMTP id h22mr16152936pli.420.1502551916982; Sat, 12 Aug 2017 08:31:56 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id f65sm6901054pfc.109.2017.08.12.08.31.52 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:31:56 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:01:49 +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 02/16] ALSA: ca0106: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:14 +0530 Message-Id: <1502551888-30325-3-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/ca0106/ca0106_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 6165a57..2be30b8 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c @@ -296,7 +296,7 @@ }; /* hardware definition */ -static struct snd_pcm_hardware snd_ca0106_playback_hw = { +static const struct snd_pcm_hardware snd_ca0106_playback_hw = { .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -317,7 +317,7 @@ .fifo_size = 0, }; -static struct snd_pcm_hardware snd_ca0106_capture_hw = { +static const struct snd_pcm_hardware snd_ca0106_capture_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |