From patchwork Thu Aug 17 09:15:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9905405 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 2662D60244 for ; Thu, 17 Aug 2017 09:19:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 247AF287B1 for ; Thu, 17 Aug 2017 09:19:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 195EB287BD; Thu, 17 Aug 2017 09:19:15 +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=-4.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB,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 C3AE6287B1 for ; Thu, 17 Aug 2017 09:19:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752668AbdHQJTO (ORCPT ); Thu, 17 Aug 2017 05:19:14 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34185 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752272AbdHQJRM (ORCPT ); Thu, 17 Aug 2017 05:17:12 -0400 Received: by mail-pg0-f68.google.com with SMTP id y192so8931651pgd.1; Thu, 17 Aug 2017 02:17:12 -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=pgRDtZHKHPkJtFCElBMhiF1W5/7zPL8UmBjko0hqJYc=; b=G6p4mDGQeSGCC5zSQE2N8iA/8XHxwGpMFRSDG9k8Jaw2t81f3B6GgT5uQRgxjyrZOz eClcTztZTJ9lq6I0W2IfM+/wATEzQxMe9bp7mTUcoknCPuft39NrgLPM4NVxgeHfSBjJ /rjDAT3q/zz64BQ0jw2fWtwrxae/4HIXlWhKF5AgnE9YxZEEbMPcODYlmFQ5kI743SOe KGDnFfk9VeuB7Q8fbFQbNCkLJgCIxuJR6Kb0ZQgCqXtdqIt85tV6AJmaHlw0iQ/sgJf8 hK80YRipz24v0QxvDUE/3i0kxicHB/qXXPvPjCesjY95D64HCA2a//rj1ugNJvrE1yd2 vwZw== 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=pgRDtZHKHPkJtFCElBMhiF1W5/7zPL8UmBjko0hqJYc=; b=mqGbK2CnnBpn6t3DnrOeMRGgsQkJzg02hUsS0gRGbcup0w6ji+zX8FEb/WYJkttWy+ bEMYVXCewyM4Jx35UWaZX/vmOBOANaDq5Y9NcPauSCk3rDbc6v8ETpbXapyIfEh+V3W8 9z48brDBjlLY4X5lrjUSsK/LeyL3rwbTA1xCsXizvm0Sm6wpLNnRS3Lr3VY61Pg63EFi Iyw0XrhFcTnL56hp8UBGspLRrtbWEseUE5RcOUcsW2UIiMZJyo9NI8MXJt4pqiUtWnEU UJ6dazmmeYqyo5Gq+r8YLjM6uBtBszwJGwISUUMXftA90KLdMOVeSunHwrRtBMkMDOSl T1Xg== X-Gm-Message-State: AHYfb5ggeI6vWypaxMm8Fog+Ow3fp0uB06EnMq9UeWZ0vzuZEWrqp1D5 HJ8Dmcgy3817ZQ== X-Received: by 10.98.70.132 with SMTP id o4mr4539492pfi.104.1502961431773; Thu, 17 Aug 2017 02:17:11 -0700 (PDT) Received: from gmail.com ([117.196.97.196]) by smtp.gmail.com with ESMTPSA id m84sm6007680pfi.88.2017.08.17.02.17.06 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 02:17:11 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 17 Aug 2017 14:47:03 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, linux@armlinux.org.uk, perex@perex.cz, tiwai@suse.com, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Bhumika Goyal Subject: [PATCH 05/12] ALSA: mips: make snd_pcm_hardware const Date: Thu, 17 Aug 2017 14:45:53 +0530 Message-Id: <1502961360-22063-6-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502961360-22063-1-git-send-email-bhumirks@gmail.com> References: <1502961360-22063-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 in a copy operation. Done using Coccinelle Signed-off-by: Bhumika Goyal --- sound/mips/hal2.c | 2 +- sound/mips/sgio2audio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/mips/hal2.c b/sound/mips/hal2.c index 3318c15..367d6c37 100644 --- a/sound/mips/hal2.c +++ b/sound/mips/hal2.c @@ -496,7 +496,7 @@ static void hal2_free_dmabuf(struct hal2_codec *codec) DMA_ATTR_NON_CONSISTENT); } -static struct snd_pcm_hardware hal2_pcm_hw = { +static const struct snd_pcm_hardware hal2_pcm_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_INTERLEAVED | diff --git a/sound/mips/sgio2audio.c b/sound/mips/sgio2audio.c index 0ebc1c3..603892f 100644 --- a/sound/mips/sgio2audio.c +++ b/sound/mips/sgio2audio.c @@ -532,7 +532,7 @@ static irqreturn_t snd_sgio2audio_error_isr(int irq, void *dev_id) /* PCM part */ /* PCM hardware definition */ -static struct snd_pcm_hardware snd_sgio2audio_pcm_hw = { +static const struct snd_pcm_hardware snd_sgio2audio_pcm_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_INTERLEAVED |