From patchwork Sat Aug 12 15:31:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897339 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 A352E60351 for ; Sat, 12 Aug 2017 15:34:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 931A8286BB for ; Sat, 12 Aug 2017 15:34:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84E99287AC; Sat, 12 Aug 2017 15:34:59 +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=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 2AE55286BB for ; Sat, 12 Aug 2017 15:34:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752417AbdHLPc6 (ORCPT ); Sat, 12 Aug 2017 11:32:58 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35341 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752374AbdHLPcy (ORCPT ); Sat, 12 Aug 2017 11:32:54 -0400 Received: by mail-pg0-f65.google.com with SMTP id l64so5363334pge.2; Sat, 12 Aug 2017 08:32:54 -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=dpj7NWQR4AmWWn1FT4g0voXfBch9cz9oC7+hDJZRD3w=; b=X+yNyxoUBRD987CXqTm4MGnOSdYAcoSt/zNR7qckwcnTTGTp477WYeBnw73rVHnBBI zXU7WEIkq8esUwdFV6bClsj17N6fwoCIdJGzEylub4GEd6FAouAvp7iTxA9hWfFNTVBs fhqWU7sjs8skJt0QYgQVXeUBXIImYlSQ0xBQXa+N88U2pqqwXxcf1BElt0xbuhFPxyih tnGIMbec1Dc2X/qsQ6HdmEb3uvgZn5x2pVy4Xw+UL1ph+yXir1mg5IS7jbpqr2k3rF46 OTLZcuFbSC+xqC59uzUNhHs8wXB2FA8WLAcpeZnyLOjzBhzod0Gy5U4DArC5VAgsg/bK Ue6w== 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=dpj7NWQR4AmWWn1FT4g0voXfBch9cz9oC7+hDJZRD3w=; b=mYEhk/7AKF3DdUrrHca6sF8zXyX2A6J7BOKhssKFfuAqiiyDDIpbwoK3WGYlZvtFfp D5dWLAIv6HF4n8iNVNv0zTDWHr7inRAdBalIczj3ndzdruNOVGRs8/WwlWIaV0ltCoE+ vlWzWLCIkv8Y2bGoinxssbpR2xn9LWe1WchyUQN9HHh+DE29wXD+yXhAaXCokzlVvPA7 rCPcxN/YF4yzRvaY5yEQ4wNPXg9nk+QDx6etpDXdslvhbRVhDGjtbA9RD/ONM3M88otR mpqfiGoSZkdtG2QVsupDUKmEVBv+kclFeuZE5UbUhvbcW0eNYs+K/Z1Sg0lVNydd2ou3 hL4g== X-Gm-Message-State: AHYfb5hcqPZH7bTdnPySrRn2f18poat3LhkLXeoEROHRYNGIyUr0v7HT LxPFGGC2XfvF1A== X-Received: by 10.84.232.197 with SMTP id x5mr21552545plm.329.1502551973932; Sat, 12 Aug 2017 08:32:53 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id m125sm6247051pfm.157.2017.08.12.08.32.48 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:32:53 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:02:45 +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 09/16] ALSA: mixart: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:21 +0530 Message-Id: <1502551888-30325-10-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/mixart/mixart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index 6d7fbf3..aca3b34 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c @@ -675,7 +675,7 @@ static int snd_mixart_hw_free(struct snd_pcm_substream *subs) /* * TODO CONFIGURATION SPACE for all pcms, mono pcm must update channels_max */ -static struct snd_pcm_hardware snd_mixart_analog_caps = +static const struct snd_pcm_hardware snd_mixart_analog_caps = { .info = ( SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP_VALID | @@ -696,7 +696,7 @@ static int snd_mixart_hw_free(struct snd_pcm_substream *subs) .periods_max = (32*1024/256), }; -static struct snd_pcm_hardware snd_mixart_digital_caps = +static const struct snd_pcm_hardware snd_mixart_digital_caps = { .info = ( SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP_VALID |