From patchwork Thu Aug 17 09:15:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9905367 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 D32D060244 for ; Thu, 17 Aug 2017 09:17:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF4FE28AD5 for ; Thu, 17 Aug 2017 09:17:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C435F28AD7; Thu, 17 Aug 2017 09:17:41 +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 613F628AD5 for ; Thu, 17 Aug 2017 09:17:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752510AbdHQJRk (ORCPT ); Thu, 17 Aug 2017 05:17:40 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38001 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752450AbdHQJRi (ORCPT ); Thu, 17 Aug 2017 05:17:38 -0400 Received: by mail-pg0-f66.google.com with SMTP id 123so8903603pga.5; Thu, 17 Aug 2017 02:17:38 -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=i06pI2YtEEidOjxy445dNQwFzg1YFwK5+BzT91sxmys=; b=Tt3J/E4dIBqIC+vouQ6hE2p4TmvyAcWFNed1FVqwMlStoZAhO8YhrenlKGWFlM2osf RQhly7fM3j6dj8UJte2mWnbMJrB6ZaJqPCxqA4Hnqk+7D+0RtEyL9DD1VEW8GLE88wxB FHT642167u7KNBF7wRI0XgWjWET7IAvAsAI/V2FK9ldyRc7Nk7n7Z9WOSMiRydtBF4Dd vov+LJvefmeM4A7xH5jeFU2SBL3lef96M1hng9aDkh1BwPOvIe96ILwmPoeTqyoiZ840 H3y0ug5PwMElk0jQ3D8B7bXbFrrHqsgiF4QH6hYijCATr4/KczGAPsS7y25k+JoHDkSv msPQ== 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=i06pI2YtEEidOjxy445dNQwFzg1YFwK5+BzT91sxmys=; b=nV9vF1uxDSDceqewXS+MPNiCK+lvAmXLzQcF2ZxgmIjV7ksHnSsUj+toKo3bPKG9IF j+TvRFoa+5AKR4f7VR/6/fZEI43Ou36CNuqM6dSS6aywIJYirAN4y73P5yTS3uxKL7LM HOmzV0oOwStwYQuDFY4CscxbQHJaKqeyqR6dstrs8staxkc0/kCLxBdOSbWQEoPeuz9L 8JFpWNuKQxvYzm38UHoJSKQMOfIGzQGjoplXqFDK18s47OuGB4N8cML2mfI4aOk7TnJx FxAukTaKyIVIOBRuH6oZt9SGZRuHA+vtXadpGFiS78jqE26fQH0fHCBDm5XoYbpDN+vW VbAg== X-Gm-Message-State: AHYfb5g24ievXAAnSjHvtR7j71VQmwRPXYPI7uMu7HYTBp6QrnBPQ727 mz7GxpXqvmsJuw== X-Received: by 10.84.218.4 with SMTP id q4mr5013479pli.202.1502961457967; Thu, 17 Aug 2017 02:17:37 -0700 (PDT) Received: from gmail.com ([117.196.97.196]) by smtp.gmail.com with ESMTPSA id w1sm5450647pge.59.2017.08.17.02.17.32 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 02:17:37 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 17 Aug 2017 14:47:30 +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 08/12] ALSA: ppc: make snd_pcm_hardware const Date: Thu, 17 Aug 2017 14:45:56 +0530 Message-Id: <1502961360-22063-9-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/ppc/pmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c index a5843fc..45f0295 100644 --- a/sound/ppc/pmac.c +++ b/sound/ppc/pmac.c @@ -509,7 +509,7 @@ static void snd_pmac_pcm_update(struct snd_pmac *chip, struct pmac_stream *rec) * hw info */ -static struct snd_pcm_hardware snd_pmac_playback = +static const struct snd_pcm_hardware snd_pmac_playback = { .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP | @@ -528,7 +528,7 @@ static void snd_pmac_pcm_update(struct snd_pmac *chip, struct pmac_stream *rec) .periods_max = PMAC_MAX_FRAGS, }; -static struct snd_pcm_hardware snd_pmac_capture = +static const struct snd_pcm_hardware snd_pmac_capture = { .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP |