From patchwork Sat Aug 12 15:31:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897337 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 0A9D560351 for ; Sat, 12 Aug 2017 15:34:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F059528799 for ; Sat, 12 Aug 2017 15:34:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5034286BB; Sat, 12 Aug 2017 15:34:51 +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 9EEE5286BB for ; Sat, 12 Aug 2017 15:34:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752456AbdHLPdF (ORCPT ); Sat, 12 Aug 2017 11:33:05 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33059 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752374AbdHLPdD (ORCPT ); Sat, 12 Aug 2017 11:33:03 -0400 Received: by mail-pg0-f67.google.com with SMTP id u185so5372606pgb.0; Sat, 12 Aug 2017 08:33:02 -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=nRNzkeQoAR3DTE9TZ1D52AlKq4GTJ0syRarnjG3K6yQ=; b=sDWyS68B2q1xjKG5W9b6ZfnMzluhiivi84KFG/Bcw2tN7ynINxDmnG2xOmMivlibt0 2f8sGGUi2y5Tw5V0Sp6ktDwd0FFtNuvOHCfG4Tzys4j+V98uvY7UCFLIK3E62c9m3W4L SQ7m0PzMKIE2gxFSZkpqil8DclltbRHk//hr8zINoXOF1n9dNn9H6jYrbHc1gNU8FzBI wcW0Ux0ILwK278hc2xk2X3hesHF7WEKqZT7eSz69c82IhJ5XK2PpP+LYMrjIv0FnTMG4 6JbbZDyzZeM1kugSrm01ZnpoTSPueIuSuXZk/Xlcee0/2qLmenQ1pvnqIVq+Aa6m940+ tbrA== 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=nRNzkeQoAR3DTE9TZ1D52AlKq4GTJ0syRarnjG3K6yQ=; b=QKjANAuGjiT2jUIIxkIVzEt07bw3FOBetotw/0vWYo2YA4dUE4RT2e3qWvZB2SEQEQ aqDMFbl0pwp/xLYo3NEDgHnjbm2C1VuIVC4b4825OTeUmuFgYS9b9Epo9lDYzA8ZOaGi p75PtDkeKw5i90VkpLYMseaUYCCE2V5olr6MUDZy2i6VC40znMfWsCvyQgf6GjNFWJES 274OBTnqef2Mjs6giAQK33j5/954dhX/AXQlq7J+Kitl43wVnkCoSXiOc5vAiln3JoxF dI1+6HFPCl19P8qvOMLkwDJfQEkOlWfj8GVWiAF1/sfIrxlE+3XKdgBjPEzWfM7wIUxQ Og7Q== X-Gm-Message-State: AHYfb5jEeD9ZUmLOy3+oROI9/l5OuzGr3YhRioUdw4g15WF44KUhZJd1 0DzCNBvU3iBoag== X-Received: by 10.84.210.171 with SMTP id a40mr21455688pli.443.1502551982332; Sat, 12 Aug 2017 08:33:02 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id o4sm6247739pga.47.2017.08.12.08.32.57 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:33:01 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:02:54 +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 10/16] ALSA: ctxfi: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:22 +0530 Message-Id: <1502551888-30325-11-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/ctxfi/ctpcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/pci/ctxfi/ctpcm.c b/sound/pci/ctxfi/ctpcm.c index 9749780..358f520 100644 --- a/sound/pci/ctxfi/ctpcm.c +++ b/sound/pci/ctxfi/ctpcm.c @@ -21,7 +21,7 @@ #include /* Hardware descriptions for playback */ -static struct snd_pcm_hardware ct_pcm_playback_hw = { +static const struct snd_pcm_hardware ct_pcm_playback_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -46,7 +46,7 @@ .fifo_size = 0, }; -static struct snd_pcm_hardware ct_spdif_passthru_playback_hw = { +static const struct snd_pcm_hardware ct_spdif_passthru_playback_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -69,7 +69,7 @@ }; /* Hardware descriptions for capture */ -static struct snd_pcm_hardware ct_pcm_capture_hw = { +static const struct snd_pcm_hardware ct_pcm_capture_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |