From patchwork Sat Aug 12 15:31:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897361 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 7701B603F2 for ; Sat, 12 Aug 2017 15:36:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69143286BB for ; Sat, 12 Aug 2017 15:36:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DC0D28799; Sat, 12 Aug 2017 15:36:04 +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 0491F28799 for ; Sat, 12 Aug 2017 15:36:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751977AbdHLPbv (ORCPT ); Sat, 12 Aug 2017 11:31:51 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35117 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbdHLPbt (ORCPT ); Sat, 12 Aug 2017 11:31:49 -0400 Received: by mail-pf0-f196.google.com with SMTP id j68so6013484pfc.2; Sat, 12 Aug 2017 08:31:49 -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=ZkSr/T+YuFkjj2nGY7PmwNlb06a3gte45I2EWhZKa4k=; b=OQfc5pNub3dNmBiRaxONKJru9hPlZ/nXHFAIbG3OL9lwATR8evSy3bgYnsL9vKdgcW x+GVuQND8e3+rBqBp22RZC4dPZEZ9ktQpM1U8285aEe/+5A9mWy0KoTq3ukpRH8zo0qm thrfp1fn7lQKnZrFlEK/iHYAGjs9J4lqQIdXzhOLhAv23mlSripHBfWSLuoZ6Lk6YF5+ 6aWplsSuSjhsIQPMznWjR8TpUj76D/NRH/Vdt5FDqJFxjzaTTx9DfbvHRIAo9JU4Hzjk pbdFF+4D1YazI4jZ2BYWSN/frNexfk8DKT77HrZ20fAn3fkMsjfgTsUxTWwWOywrqhD4 Ji5A== 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=ZkSr/T+YuFkjj2nGY7PmwNlb06a3gte45I2EWhZKa4k=; b=kgDL/HpnkpinmewKpI3o6trfAOYFa0b18yRxKpaG5iubBvUMJ0BhgLytI703GkYh60 E9VnFY9Xmnv/q/JsiKEy6zFgU0ZTdPK5A/IObrB7oSqXIsrp7bwNgmxC7g7d9fRgBHmT q1CfJLlltuAXEAh3A5y0AstsPV+DH9tWxqvvf5d+vtGyHZRc71ZlLWidWT2zncfEFqHq nZwfZJiJ/yPFy4UoBde4pZTrHNkXCJ8b2G3/P/2ytjg4JcQtRpSLyvKr8isYSWnOLziJ ph/b7lzBceZJ/WkwSOrr59+vGG1ZtXr21GjMzSsmtCtfJNa2wE52nbBu6NdWnn/CqMBl HAWg== X-Gm-Message-State: AHYfb5ijcVokxiDaA4u981Y128POEAIyrJnVzU5BtJVI2KJdo2nGZ6bx nxQupZ0fppcFGw== X-Received: by 10.99.95.200 with SMTP id t191mr18337789pgb.237.1502551908878; Sat, 12 Aug 2017 08:31:48 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id t3sm6302836pfb.147.2017.08.12.08.31.43 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:31:47 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:01:40 +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 01/16] ALSA: aw2: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:13 +0530 Message-Id: <1502551888-30325-2-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/aw2/aw2-alsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/aw2/aw2-alsa.c b/sound/pci/aw2/aw2-alsa.c index 8356180..9a49e42 100644 --- a/sound/pci/aw2/aw2-alsa.c +++ b/sound/pci/aw2/aw2-alsa.c @@ -52,7 +52,7 @@ * TYPEDEFS ********************************/ /* hardware definition */ -static struct snd_pcm_hardware snd_aw2_playback_hw = { +static const struct snd_pcm_hardware snd_aw2_playback_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP_VALID), @@ -69,7 +69,7 @@ .periods_max = 1024, }; -static struct snd_pcm_hardware snd_aw2_capture_hw = { +static const struct snd_pcm_hardware snd_aw2_capture_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP_VALID),