From patchwork Thu Aug 17 09:16:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9905385 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 C087260244 for ; Thu, 17 Aug 2017 09:18:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC55528ACD for ; Thu, 17 Aug 2017 09:18:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B10F028AD4; Thu, 17 Aug 2017 09:18:27 +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 6309D28ACD for ; Thu, 17 Aug 2017 09:18:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751665AbdHQJSO (ORCPT ); Thu, 17 Aug 2017 05:18:14 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34685 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751369AbdHQJSM (ORCPT ); Thu, 17 Aug 2017 05:18:12 -0400 Received: by mail-pg0-f66.google.com with SMTP id y192so8935550pgd.1; Thu, 17 Aug 2017 02:18: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=IaPyeoSVexLdPpX7776b61dVqXkMvdCb42hyJJDYlzQ=; b=BDd9y4Z+xaog4gXuO8qa1LSX5ZXUCk7AjmHJt2v6W5/4mF8wQvwUS5cyEldKfIJv+B hnLmHVd2l8MHFij8ZnApuySKBMArslxPIzjF2ZzNWTz3nsuy2iu4hLaY0vUQMYLaGg4u Zlw+vkJzvhGvv4uDhOhN4Yfpo4ZWxyh1qaqZdcAx2Lw+x8WOZPzzVcP1wcWYK3g0Xkf2 XyFV4LRneHKcAwygNSLT3oBu/k2z2TO2a7vt0V/A7v0le13+yo6xBF+YE4wnUYCRN4qI KPVDLxmr4CLMHzR9mPShE3+p6G/Xj0Ls5fvaFSrkkgZn5FMpXMavu8+zTF6lWmkzwWlU NXlA== 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=IaPyeoSVexLdPpX7776b61dVqXkMvdCb42hyJJDYlzQ=; b=pcm1vtGSlyEUdTh0Ju6ibDX5EbH89nwcsqEua58J2DYCUUI70HYwzK6OZr3+KH2Gy/ TZPO6b6ipdAK17hVmVmeWqUR+XIIekkujMmYBH79gG4H/kXFXVreVm5ZSanqXtbem7/G IFcPBQwHjqOiZ64aVPgahtvLYgOzV5QwY3b+28pA4DdCPK3Z+gS8xFIHJGLPd2bgD9ft sMlZg3JlU5hgvsC4sYQnmHS100sy9olbilBZfZDs73YqVxsm3mxrg90S1jF73jeeJbz+ dyR96YogVQVx6tRniq8HLXRMVeMevOJppdLixlMxJ2z5KXfxJ0L9rkcE3GP9lg3+b7sh p9SQ== X-Gm-Message-State: AHYfb5izuNnyxhEwrD9iAFpy7qwYgvjc2hQjKrxZlBD1st9P3ch/HKE9 pj+o+yyx1OkKOQ== X-Received: by 10.84.234.23 with SMTP id m23mr5136900plk.427.1502961491702; Thu, 17 Aug 2017 02:18:11 -0700 (PDT) Received: from gmail.com ([117.196.97.196]) by smtp.gmail.com with ESMTPSA id u26sm6914851pfi.140.2017.08.17.02.18.06 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 02:18:11 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 17 Aug 2017 14:48: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 12/12] ALSA: parisc: make snd_pcm_hardware const Date: Thu, 17 Aug 2017 14:46:00 +0530 Message-Id: <1502961360-22063-13-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/parisc/harmony.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/parisc/harmony.c b/sound/parisc/harmony.c index 5911eb3..cb2bc54 100644 --- a/sound/parisc/harmony.c +++ b/sound/parisc/harmony.c @@ -260,7 +260,7 @@ return HARMONY_SR_44KHZ; } -static struct snd_pcm_hardware snd_harmony_playback = +static const struct snd_pcm_hardware snd_harmony_playback = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_JOINT_DUPLEX | SNDRV_PCM_INFO_MMAP_VALID | @@ -281,7 +281,7 @@ .fifo_size = 0, }; -static struct snd_pcm_hardware snd_harmony_capture = +static const struct snd_pcm_hardware snd_harmony_capture = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_JOINT_DUPLEX | SNDRV_PCM_INFO_MMAP_VALID |