From patchwork Sat Aug 12 15:31:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897323 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 4528C60351 for ; Sat, 12 Aug 2017 15:34:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 369A32859A for ; Sat, 12 Aug 2017 15:34:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B5792869F; Sat, 12 Aug 2017 15:34:20 +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=unavailable 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 DB6EA2859A for ; Sat, 12 Aug 2017 15:34:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752557AbdHLPdj (ORCPT ); Sat, 12 Aug 2017 11:33:39 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36822 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494AbdHLPdg (ORCPT ); Sat, 12 Aug 2017 11:33:36 -0400 Received: by mail-pg0-f67.google.com with SMTP id y129so5360486pgy.3; Sat, 12 Aug 2017 08:33:36 -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=f5f3WGoWpyfWTElKLNZgkzNMJyOCxRbRW05bsDrcNtw=; b=fiN5eulzfV9vs7BwWYvmaEv5x8i37HAxdbpOg5txGOiYO4uVPB1LOEPNZAKWnRoZwN RjVBPrU4kKvaxHL6OadaAGxQp62IlvI/HX8HGycbocBToPxfDi3nJd94lWpqfBGX2I66 KWzhY9f/0XzUCKdGxwn+3varWIq6SlgBQjq+riAExsi1vOgNPRt3vlay/y9onLwLLYqS orw5u6dRL8BLIHNgR/1JRImrSUx7hjRmh2qlQzwp5AsEkorMKCZ4VxJ6Vn2ovK0DsPsB hjp6lxRT48iaHtDqjRdZghi1sEwNeiPdPPqnXJFHpJ6B1s1ZlGeqBhqNyqCGWELALi+C RWHw== 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=f5f3WGoWpyfWTElKLNZgkzNMJyOCxRbRW05bsDrcNtw=; b=O4O9DydpYY22Zb4OCP6PfMRkUDQUz0Vd2DLpUPlifLkUt34/6tcgSGlkeDTiZC0IpL y2ZqZJpM8hjH7ZR2/IwNM0lXtrqLLEFdQfuO77DCo3cweeWYcxc6MaI8zwSbw7ysBHCe 5whqXdsbI5lkda2TaOfcOCfGmPLjwwqOAT7x1AG+BYm1m9A7dRn8AWBOOup1Hyls9BFA WH+axosrRFcs8yP2Z9mzpvpgSOuGSQfAY02epGagbMtlJjBJ3PcdUkhg5PFOJ1NTkb6J ELrLfZwXGMOfHkBSXvIX2pwkZLxj7RUpogwBj6hpORKExt22qAq4yKnW+Td2LHRDuypF 9vvQ== X-Gm-Message-State: AHYfb5ji4uutvwSxASRggOccXSFkwWaKp6OyQCr6h0mGyb/lXOv2xMYP pZ5qtiEiVhxsOQ== X-Received: by 10.99.54.138 with SMTP id d132mr18515585pga.156.1502552016279; Sat, 12 Aug 2017 08:33:36 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id y70sm7264550pfg.93.2017.08.12.08.33.30 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:33:35 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:03:27 +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 14/16] ALSA: trident: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:26 +0530 Message-Id: <1502551888-30325-15-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/trident/trident_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/pci/trident/trident_main.c b/sound/pci/trident/trident_main.c index 4561040..191047a 100644 --- a/sound/pci/trident/trident_main.c +++ b/sound/pci/trident/trident_main.c @@ -1727,7 +1727,7 @@ static snd_pcm_uframes_t snd_trident_spdif_pointer(struct snd_pcm_substream *sub * Playback support device description */ -static struct snd_pcm_hardware snd_trident_playback = +static const struct snd_pcm_hardware snd_trident_playback = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -1752,7 +1752,7 @@ static snd_pcm_uframes_t snd_trident_spdif_pointer(struct snd_pcm_substream *sub * Capture support device description */ -static struct snd_pcm_hardware snd_trident_capture = +static const struct snd_pcm_hardware snd_trident_capture = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -1777,7 +1777,7 @@ static snd_pcm_uframes_t snd_trident_spdif_pointer(struct snd_pcm_substream *sub * Foldback capture support device description */ -static struct snd_pcm_hardware snd_trident_foldback = +static const struct snd_pcm_hardware snd_trident_foldback = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -1801,7 +1801,7 @@ static snd_pcm_uframes_t snd_trident_spdif_pointer(struct snd_pcm_substream *sub * SPDIF playback support device description */ -static struct snd_pcm_hardware snd_trident_spdif = +static const struct snd_pcm_hardware snd_trident_spdif = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | @@ -1822,7 +1822,7 @@ static snd_pcm_uframes_t snd_trident_spdif_pointer(struct snd_pcm_substream *sub .fifo_size = 0, }; -static struct snd_pcm_hardware snd_trident_spdif_7018 = +static const struct snd_pcm_hardware snd_trident_spdif_7018 = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |