From patchwork Thu Aug 17 09:15:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9905393 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 962D260244 for ; Thu, 17 Aug 2017 09:18:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 934E628ADC for ; Thu, 17 Aug 2017 09:18:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86C7628AD9; Thu, 17 Aug 2017 09:18:42 +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 3E0CD28ACD for ; Thu, 17 Aug 2017 09:18:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752450AbdHQJRs (ORCPT ); Thu, 17 Aug 2017 05:17:48 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34481 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751671AbdHQJRr (ORCPT ); Thu, 17 Aug 2017 05:17:47 -0400 Received: by mail-pg0-f68.google.com with SMTP id y192so8933836pgd.1; Thu, 17 Aug 2017 02:17:46 -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=tDAbz6/0zsg9Rm+tw3xnx+JhkTBas8vqZHL3gEV4yUU=; b=bpscVsrmQBEqM0Hs0Z3cfR6ZEllhIe2Pmo6GiAvGpVS7uQBF23iw2cI3MIbBo66nBH YFIwGqb/RHyQDmOAjQ7XAa7rYv1oLyUBl3JqbfFlWRXujnNL7uSTlWOyrJ50sqzv0qr1 bU/N21T1Tj/LDJHTrR+kavQgPRGvb3W7fIql9+ztm4eovqDVXGmkW34v4DFjsZ5pkpuV XsgOcEXKXhtSjGFfoDRu1nmNbvzvA8UZEQ0q5hOV71ahc8XUPazHAMnz6zMHCTh9gHMA 05fulDeVpRm5deeHc0ys+VNWR+x0cntIwY4pB5SjbCsuuls2ZoHdRNxd+Mwr54sgez8A FL8A== 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=tDAbz6/0zsg9Rm+tw3xnx+JhkTBas8vqZHL3gEV4yUU=; b=uSbB0esJKxaQYOMPf8jlmhjL2WwYcCoAGB/0hFGgfezXwQkL2qVb8ljO9Ovrcb8v0b WNDXDuVOfc7PRJl91X/wKGBCN03TAiMDagtLgZihoxrfuBHx096g4BBjd7JyudA03sf0 AZHC5VJWK0Za+oIiBIIxHAAFUaqYzIv04X/2nuoRLHjFAsY5wzWR/e/82xBfRnSDKUm+ P8ny4hdhRnyPUhLcVQVHAKJY0o5cab57/1bK83MRqPYkfPnt2I4JH/rsKaFPPd6vJBO5 QkR1Q2TmzwidyBmk7uvNryMN8nXxw2dqDgdZFvD7fWkanHtglL1orT9AiukKxAYoD+5+ LiMg== X-Gm-Message-State: AHYfb5iFFDF3tCndF/M+t57kbYj9gBsqrKRWqzv4u9qNSfOGVXviamtg HjS96BwaUUb3zg== X-Received: by 10.99.138.199 with SMTP id y190mr4006842pgd.287.1502961466468; Thu, 17 Aug 2017 02:17:46 -0700 (PDT) Received: from gmail.com ([117.196.97.196]) by smtp.gmail.com with ESMTPSA id 133sm5342198pgc.19.2017.08.17.02.17.40 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 02:17:45 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 17 Aug 2017 14:47:38 +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 09/12] ALSA: sh: make snd_pcm_hardware const Date: Thu, 17 Aug 2017 14:45:57 +0530 Message-Id: <1502961360-22063-10-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/sh/aica.c | 2 +- sound/sh/sh_dac_audio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/sh/aica.c b/sound/sh/aica.c index ab4802d..822608d 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c @@ -211,7 +211,7 @@ static void aica_chn_halt(void) } /* ALSA code below */ -static struct snd_pcm_hardware snd_pcm_aica_playback_hw = { +static const struct snd_pcm_hardware snd_pcm_aica_playback_hw = { .info = (SNDRV_PCM_INFO_NONINTERLEAVED), .formats = (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | diff --git a/sound/sh/sh_dac_audio.c b/sound/sh/sh_dac_audio.c index c1e00ed..a077f1c 100644 --- a/sound/sh/sh_dac_audio.c +++ b/sound/sh/sh_dac_audio.c @@ -93,7 +93,7 @@ static void dac_audio_set_rate(struct snd_sh_dac *chip) /* PCM INTERFACE */ -static struct snd_pcm_hardware snd_sh_dac_pcm_hw = { +static const struct snd_pcm_hardware snd_sh_dac_pcm_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_INTERLEAVED |