From patchwork Sat Aug 12 15:31:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897351 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 26B0560325 for ; Sat, 12 Aug 2017 15:35:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 180AA286BB for ; Sat, 12 Aug 2017 15:35:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CBC7287AC; Sat, 12 Aug 2017 15:35:47 +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 A6DF6286BB for ; Sat, 12 Aug 2017 15:35:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752202AbdHLPcY (ORCPT ); Sat, 12 Aug 2017 11:32:24 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33783 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752197AbdHLPcW (ORCPT ); Sat, 12 Aug 2017 11:32:22 -0400 Received: by mail-pf0-f196.google.com with SMTP id c65so6024924pfl.0; Sat, 12 Aug 2017 08:32:22 -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=uoRcQFlisoblBXTarEBy1VenWk2HRZNG+0tBW+6PFAU=; b=ScQfqu7+qAajHuAG08wdPsKMii9mMhaVAt+Z3xnSO6xSfrCjY+PiYEwDmW7lKV/VKA qfqfh81ucWhM13cTKXho+ueNR5+nj4Dmft+qBrHJHVBEZAx/pc9azA0t/DEZmWKRifRh 1xQVhFAuwWlkGmD92q4cE/hwBRJDXf8tv0RGXcNIIhLCvaAdkXZgX4Wymk0V8mgFGM1z 0yZI70fEO2SUmQbYWWuLRi/sUQov+6F4SYwbsCuojHZBf6YZmghM/xGf+8sySc/3QbX4 kVk3ahLjROSYdjBkI/3Smjr+ouARItHImfmYz4oy0kgrsnyEKLegDIzHsBvXi8/vEEOS k98A== 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=uoRcQFlisoblBXTarEBy1VenWk2HRZNG+0tBW+6PFAU=; b=cvAcDM0ZVWE6T9aXX5nt8XRITynknYFbRskh4zWR1DSkjbwMmjzNpzWL/gJdq7oI03 XG6rbdMwiT9b32bl9/ImsYxp2TuSkXPzCEXUZFz62fwySbaa2PEn4d69bUlflvKHNeJe CHsCTn4anJJPOdCYMsZyruv+y6RCMHXE5wVk77WH8qgq9jk39GcTi0BbYJGYRy3JTS50 v82GI/3VXl3HGuMfqShWNu+YukTuy85DBDYSApt60boVLeoi3fpO58M+yxU7kbjYMPGS jDuTmsMeuc7IdsM/Tfdgd1lS3EZ4E3pzwUSE+bgAfTd680TQfw/xDnGPqCGRyvgSR2v0 Tscw== X-Gm-Message-State: AHYfb5iK/n2bH6mGq4RrCqA2fWNZqqN3IIMQ22sJld6lullAncpzrPb/ 9j1dUzimwHB67w== X-Received: by 10.84.133.162 with SMTP id f31mr21490647plf.242.1502551942181; Sat, 12 Aug 2017 08:32:22 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id b77sm7512098pfe.54.2017.08.12.08.32.16 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:32:21 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:02:13 +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 05/16] ALSA: cs5535audio: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:17 +0530 Message-Id: <1502551888-30325-6-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/cs5535audio/cs5535audio_pcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c b/sound/pci/cs5535audio/cs5535audio_pcm.c index c208c1d..ee7065f 100644 --- a/sound/pci/cs5535audio/cs5535audio_pcm.c +++ b/sound/pci/cs5535audio/cs5535audio_pcm.c @@ -33,7 +33,7 @@ #include #include "cs5535audio.h" -static struct snd_pcm_hardware snd_cs5535audio_playback = +static const struct snd_pcm_hardware snd_cs5535audio_playback = { .info = ( SNDRV_PCM_INFO_MMAP | @@ -62,7 +62,7 @@ .fifo_size = 0, }; -static struct snd_pcm_hardware snd_cs5535audio_capture = +static const struct snd_pcm_hardware snd_cs5535audio_capture = { .info = ( SNDRV_PCM_INFO_MMAP |